git.force_head: quiet git reset
authorGuido Günther <agx@sigxcpu.org>
Sat, 22 Jan 2011 14:25:00 +0000 (15:25 +0100)
committerGuido Günther <agx@sigxcpu.org>
Sat, 22 Jan 2011 14:26:47 +0000 (15:26 +0100)
so we don't see pointless 'HEAD is now at ...' messages during imports.

gbp/git.py

index 9fac3ba..8b7f17e 100644 (file)
@@ -207,7 +207,7 @@ class GitRepository(object):
 
     def force_head(self, commit, hard=False):
         """force head to a specific commit"""
-        args = []
+        args = ['--quiet']
         if hard:
             args += [ '--hard' ]
         args += [ commit, '--' ]