Skip to content

Commit 9e91a05

Browse files
committed
Make sure that branches looking like a numeric scalar will not become number type in python.
The latter will break code that assumes it will get a string.
1 parent 673b21e commit 9e91a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/objects/submodule/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ def iter_items(cls, repo, parent_commit='HEAD'):
895895
u = parser.get_value(sms, 'url')
896896
b = cls.k_head_default
897897
if parser.has_option(sms, cls.k_head_option):
898-
b = parser.get_value(sms, cls.k_head_option)
898+
b = str(parser.get_value(sms, cls.k_head_option))
899899
# END handle optional information
900900

901901
# get the binsha

0 commit comments

Comments
 (0)