[Lldb-commits] [lldb] r296924 - Fixed repo.py to not send git errors to stderr.
Sean Callanan via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 3 15:13:31 PST 2017
Author: spyffe
Date: Fri Mar 3 17:13:30 2017
New Revision: 296924
URL: http://llvm.org/viewvc/llvm-project?rev=296924&view=rev
Log:
Fixed repo.py to not send git errors to stderr.
Some repos are not git repos, so git is expected
to fail. These errors should not go to stderr,
because Xcode interprets them as failures.
Modified:
lldb/trunk/scripts/Xcode/repo.py
Modified: lldb/trunk/scripts/Xcode/repo.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Xcode/repo.py?rev=296924&r1=296923&r2=296924&view=diff
==============================================================================
--- lldb/trunk/scripts/Xcode/repo.py (original)
+++ lldb/trunk/scripts/Xcode/repo.py Fri Mar 3 17:13:30 2017
@@ -11,7 +11,7 @@ def identifier():
except:
pass
try:
- git_remote_and_branch = subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "--symbolic-full-name", "@{u}"]).rstrip()
+ git_remote_and_branch = subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "--symbolic-full-name", "@{u}"], stderr=subprocess.STDOUT).rstrip()
git_remote = git_remote_and_branch.split("/")[0]
git_branch = "/".join(git_remote_and_branch.split("/")[1:])
git_url = subprocess.check_output(["git", "remote", "get-url", git_remote]).rstrip()
More information about the lldb-commits
mailing list