summaryrefslogtreecommitdiff
path: root/lib/git/cmd.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-11-26 11:49:58 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-11-26 12:09:23 +0100
commitaaeb986f3a09c1353bdf50ab23cca8c53c397831 (patch)
tree6f0575dab0a2cd04558d854cc62d99e1fe93bd0f /lib/git/cmd.py
parent9c92df685d6c600a0a3324dff08a4d00d829a4f5 (diff)
downloadgitpython-aaeb986f3a09c1353bdf50ab23cca8c53c397831.tar.gz
SymbolicReferences can now be at any path within the repository, there is no restriction anymore.
Added a test to assure the git commands can handle it
Diffstat (limited to 'lib/git/cmd.py')
-rw-r--r--lib/git/cmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git/cmd.py b/lib/git/cmd.py
index bccfb611..6ee8f355 100644
--- a/lib/git/cmd.py
+++ b/lib/git/cmd.py
@@ -344,7 +344,7 @@ class Git(object):
"""
tokens = header_line.split()
if len(tokens) != 3:
- raise ValueError("SHA named %s could not be resolved" % tokens[0] )
+ raise ValueError("SHA named %s could not be resolved, git returned: %r" % (tokens[0], header_line.strip()) )
if len(tokens[0]) != 40:
raise ValueError("Failed to parse header: %r" % header_line)
return (tokens[0], tokens[1], int(tokens[2]))