Display git subprocess errors upon exception.
This commit is contained in:
parent
17aabe961d
commit
3928922731
1 changed files with 5 additions and 1 deletions
|
@ -108,7 +108,11 @@ def gitcheckup(do_fetch=False):
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
for directory in directories:
|
for directory in directories:
|
||||||
|
try:
|
||||||
result = checkup(directory, do_fetch=do_fetch)
|
result = checkup(directory, do_fetch=do_fetch)
|
||||||
|
except subprocess.CalledProcessError as exc:
|
||||||
|
raise Exception(exc.output)
|
||||||
|
|
||||||
committed = 'C' if result.committed else ' '
|
committed = 'C' if result.committed else ' '
|
||||||
pushed = 'P' if result.pushed else ' '
|
pushed = 'P' if result.pushed else ' '
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue