forked from OSchip/llvm-project
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
This commit is contained in:
parent
3e6a7afd81
commit
56435c91c9
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue