Fixed an error updating shallow submodules by EduardTalanov · Pull Request #1899 · gitpython-developers/GitPython
Thank you.
The new regex would unconditionally consume up to three characters, just as long as there is one more to capture, followed by a space.
This should be safe and handle this particular case.