From 58929732123780497ba08ed9c2d24f4bc65971a1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 2 Jul 2021 00:29:35 -0400 Subject: [PATCH] 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 Tested-by: Mike Frysinger --- subcmds/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subcmds/sync.py b/subcmds/sync.py index 8defc93..82eb569 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -360,7 +360,7 @@ later is required to fix a server side protocol bug. partial_clone_exclude=self.manifest.PartialCloneExclude) output = buf.getvalue() - if opt.verbose and output: + if (opt.verbose or not success) and output: print('\n' + output.rstrip()) if not success: