summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2008-04-23 15:40:53 +0200
committerGuido Guenther <agx@sigxcpu.org>2008-04-23 15:40:53 +0200
commit524367691bfbde4fc371db276b3018b2e0ab397e (patch)
treee6ecda6ca95b36aeafd86c8a7eafa2d2a9c6b05e
parent6c44eb7fc0832ad2cf2c3f01f4ca9ca581ad9a09 (diff)
downloadgit-buildpackage-524367691bfbde4fc371db276b3018b2e0ab397e.tar.gz
git-buildpackage-524367691bfbde4fc371db276b3018b2e0ab397e.tar.bz2
git-buildpackage-524367691bfbde4fc371db276b3018b2e0ab397e.zip
fix error message
when we can't find any valid revisions
-rw-r--r--gbp/git_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/git_utils.py b/gbp/git_utils.py
index bbbc96f5..15136c2c 100644
--- a/gbp/git_utils.py
+++ b/gbp/git_utils.py
@@ -100,7 +100,7 @@ class GitRepository(object):
options, '%s..%s' % (start, end),
'--', paths])
if ret:
- raise GitRepositoryError, "Error gettint commits %s..%s on %s" % (start, end, paths)
+ raise GitRepositoryError, "Error getting commits %s..%s%s" % (start, end, ["", " on %s" % paths][len(paths) > 0] )
return [ commit.strip() for commit in commits ]
def show(self, id):