[jhbuild] [git] don't capture stderr when running git rev-parse



commit b5a1f42c7d0bc33deb8fcf7191dadf87a966d142
Author: Frédéric Péters <fpeters 0d be>
Date:   Mon May 18 14:22:10 2009 +0200

    [git] don't capture stderr when running git rev-parse
    
    This is to avoid git messages about ambiguous refnames, when HEAD
    is also a tag name (such as it happens with ORBit2).
---
 jhbuild/versioncontrol/git.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/jhbuild/versioncontrol/git.py b/jhbuild/versioncontrol/git.py
index fac6680..2fe42af 100644
--- a/jhbuild/versioncontrol/git.py
+++ b/jhbuild/versioncontrol/git.py
@@ -296,7 +296,7 @@ class GitBranch(Branch):
             return None
         try:
             output = get_output(['git', 'rev-parse', 'HEAD'],
-                    cwd = self.get_checkoutdir())
+                    cwd = self.get_checkoutdir(), get_stderr=False)
         except CommandError:
             return None
         except GitUnknownBranchNameError:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]