From 9e91a05aabb73cca7acec1cc0e07d8a562e31b45 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 1 May 2014 11:20:43 +0200 Subject: 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. --- git/objects/submodule/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/objects') diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index f7dc1597..99d54076 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -895,7 +895,7 @@ class Submodule(util.IndexObject, Iterable, Traversable): u = parser.get_value(sms, 'url') b = cls.k_head_default if parser.has_option(sms, cls.k_head_option): - b = parser.get_value(sms, cls.k_head_option) + b = str(parser.get_value(sms, cls.k_head_option)) # END handle optional information # get the binsha -- cgit v1.2.1