git review -sv gets more verbose
Sometimes it's difficult to understand reason why git review -s failed since error description in code is not streamed to stdout. Change-Id: I59c0deef5f32d10f9e3e7c50dbaffc6a9f59a466 Closes-Bug: #2000234
This commit is contained in:
parent
79262a5230
commit
fbdff3245e
|
@ -341,15 +341,16 @@ def set_hooks_commit_msg(remote, target_file):
|
||||||
|
|
||||||
def test_remote_url(remote_url):
|
def test_remote_url(remote_url):
|
||||||
"""Tests that a possible gerrit remote url works."""
|
"""Tests that a possible gerrit remote url works."""
|
||||||
status, __ = run_command_status("git", "push", "--dry-run", remote_url,
|
status, description = run_command_status("git", "push", "--dry-run",
|
||||||
"--all")
|
remote_url, "--all")
|
||||||
if status != 128:
|
if status != 128:
|
||||||
if VERBOSE:
|
if VERBOSE:
|
||||||
print("%s worked." % remote_url)
|
print("%s worked. Description: %s" % (remote_url, description))
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
if VERBOSE:
|
if VERBOSE:
|
||||||
print("%s did not work." % remote_url)
|
print("%s did not work. Description: %s" % (
|
||||||
|
remote_url, description))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue