diff options
| author | Mike Frysinger <vapier@google.com> | 2021-07-02 00:29:35 -0400 |
|---|---|---|
| committer | Mike Frysinger <vapier@google.com> | 2021-07-04 02:28:00 +0000 |
| commit | 58929732123780497ba08ed9c2d24f4bc65971a1 (patch) | |
| tree | 2736950a9fa47a9bb0cd136f1075ea6fab6c8bef | |
| parent | 0cb6e92ac561878cc7f6d711648e732b498f943f (diff) | |
| download | git-repo-58929732123780497ba08ed9c2d24f4bc65971a1.tar.gz | |
sync: dump git output on errors
Bug: https://crbug.com/gerrit/14700
Change-Id: I1ae53dc7f3792b7e8f11d73f706864fb6591eee8
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/311142
Reviewed-by: Raman Tenneti <rtenneti@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
| -rw-r--r-- | subcmds/sync.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 8defc932..82eb569c 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
| @@ -360,7 +360,7 @@ later is required to fix a server side protocol bug. | |||
| 360 | partial_clone_exclude=self.manifest.PartialCloneExclude) | 360 | partial_clone_exclude=self.manifest.PartialCloneExclude) |
| 361 | 361 | ||
| 362 | output = buf.getvalue() | 362 | output = buf.getvalue() |
| 363 | if opt.verbose and output: | 363 | if (opt.verbose or not success) and output: |
| 364 | print('\n' + output.rstrip()) | 364 | print('\n' + output.rstrip()) |
| 365 | 365 | ||
| 366 | if not success: | 366 | if not success: |
