summaryrefslogtreecommitdiff
path: root/git/objects/base.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-06 14:11:48 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-06 14:11:48 +0100
commit4cfc682ff87d3629b31e0196004d1954810b206c (patch)
tree86db6980ef91ba81b2f0fc47c46f9cb4d2e21616 /git/objects/base.py
parent8f219b53f339fc0133800fac96deaf75eb4f9bf6 (diff)
downloadgitpython-4cfc682ff87d3629b31e0196004d1954810b206c.tar.gz
test_submodule works
Diffstat (limited to 'git/objects/base.py')
-rw-r--r--git/objects/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/base.py b/git/objects/base.py
index 004e3981..3f595d9d 100644
--- a/git/objects/base.py
+++ b/git/objects/base.py
@@ -60,7 +60,7 @@ class Object(LazyMixin):
:param sha1: 20 byte binary sha1"""
if sha1 == cls.NULL_BIN_SHA:
# the NULL binsha is always the root commit
- return get_object_type_by_name('commit')(repo, sha1)
+ return get_object_type_by_name(b'commit')(repo, sha1)
# END handle special case
oinfo = repo.odb.info(sha1)
inst = get_object_type_by_name(oinfo.type)(repo, oinfo.binsha)