configparser.NoOptionError if submodule's URL key name is Url
rather than url
in .gitmodules
#1601
Labels
Url
rather than url
in .gitmodules
#1601
Hi, thanks for your effort in this excellent library.
Recently, I'm mining many OSS repositories using GitPython, it's a handy tool and helps me a lot. And I encountered a weird error when processing this repository.
The minimal code to reproduce the error is:
And the exception is:
It seems that the root cause is the .gitmodule file in this repository contains a
Url
instead ofurl
key, which interferes GitPython's parsing process. As a result, commit diff is also unusable.As the .gitmodule with
Url
can be correctly recognized by git, would this be a small bug?The text was updated successfully, but these errors were encountered: