From: Jonathan Nieder Date: Tue, 18 Jan 2011 04:01:46 +0000 (-0600) Subject: git-import-dsc: improve error message when upstream branch is missing X-Git-Tag: debian/0.5.19~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f00d3967cf5f75b7cf1e6469781094e61842d9b;p=tools%2Fgit-buildpackage.git git-import-dsc: improve error message when upstream branch is missing --- diff --git a/gbp/git.py b/gbp/git.py index 3e59900..04fef6a 100644 --- a/gbp/git.py +++ b/gbp/git.py @@ -331,7 +331,7 @@ class GitRepository(object): args.insert(0, "--quiet") sha, ret = self.__git_getoutput('rev-parse', args) if ret: - raise GitRepositoryError, "can't find SHA1 for %s" % name + raise GitRepositoryError, "revision '%s' not found" % name return sha[0].strip() def write_tree(self, index=None):