summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2014-05-01 11:20:43 +0200
committerSebastian Thiel <byronimo@gmail.com>2014-05-01 11:20:43 +0200
commit9e91a05aabb73cca7acec1cc0e07d8a562e31b45 (patch)
treefae5b3527ff5e62a26316179e2f1e3836c4a510a /git
parent673b21e1be26b89c9a4e8be35d521e0a43a9bfa1 (diff)
downloadgitpython-9e91a05aabb73cca7acec1cc0e07d8a562e31b45.tar.gz
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.
Diffstat (limited to 'git')
-rw-r--r--git/objects/submodule/base.py2
1 files changed, 1 insertions, 1 deletions
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