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.
llvm-svn: 296924
diff --git a/lldb/scripts/Xcode/repo.py b/lldb/scripts/Xcode/repo.py
index d6e1aee..c1e5fe3 100644
--- a/lldb/scripts/Xcode/repo.py
+++ b/lldb/scripts/Xcode/repo.py
@@ -11,7 +11,7 @@
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()