diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-29 12:10:56 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-29 12:10:56 +0200 |
commit | 6917ae4ce9eaa0f5ea91592988c1ea830626ac3a (patch) | |
tree | 75f0f55477a70f52eeb72512116ca143cea2f4ec /lib/git/objects/base.py | |
parent | f1401803ccf7db5d897a5ef4b27e2176627c430e (diff) | |
download | gitpython-6917ae4ce9eaa0f5ea91592988c1ea830626ac3a.tar.gz |
Diff: fixed bug that caused a string to end up as a blob mode
Diffstat (limited to 'lib/git/objects/base.py')
-rw-r--r-- | lib/git/objects/base.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/git/objects/base.py b/lib/git/objects/base.py index 118bc3ca..97b7898c 100644 --- a/lib/git/objects/base.py +++ b/lib/git/objects/base.py @@ -36,6 +36,7 @@ class Object(LazyMixin): super(Object,self).__init__() self.repo = repo self.binsha = binsha + assert len(binsha) == 20, "Require 20 byte binary sha, got %r, len = %i" % (binsha, len(binsha)) @classmethod def new(cls, repo, id): |