Git-Dch: Ignore
---
gbp/git.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/gbp/git.py b/gbp/git.py
index 0f0e296..7478987 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -260,9 +260,12 @@ class GitRepository(object):
raise GitRepositoryError, "can't find tag for %s" % branch
return tag[0].strip()
- def rev_parse(self, name):
+ def rev_parse(self, name, quiet=False):
"find the SHA1"
- sha, ret = self.__git_getoutput('rev-parse', [ "--verify", name])
+ args = [ "--verify", name]
+ if quiet:
+ args.insert(0, "--quiet")
+ sha, ret = self.__git_getoutput('rev-parse', args)
if ret:
raise GitRepositoryError, "can't find SHA1 for %s" % name
return sha[0].strip()
--
1.7.1
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]