Catch and report git errors (#353)
Former-commit-id: 7c867171e4
ng-deny-multiaddr
v1.1.0-7c86717-202304192129
parent
55b2d3bd25
commit
db1edd85e6
|
|
@ -175,4 +175,8 @@ def command(ctx, include, exclude, git_ssh, check_only, pull, branches_file):
|
||||||
git_repo.git.checkout(branch_to_checkout)
|
git_repo.git.checkout(branch_to_checkout)
|
||||||
|
|
||||||
for repo in repos:
|
for repo in repos:
|
||||||
process_repo(repo)
|
try:
|
||||||
|
process_repo(repo)
|
||||||
|
except git.exc.GitCommandError as error:
|
||||||
|
print(f"\n******* git command returned error exit status:\n{error}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue