commit: 8bee84ca27c6f2aebcc326d78c534725e5915e94
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 24 07:08:55 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 24 09:22:13 2023 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=8bee84ca
sync: git: only print git_cmd if not quiet
For parity with how we print merge_cmd, which is also only printed if
we should not be quiet, we do the same for git_cmd.
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>
lib/portage/sync/modules/git/git.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/portage/sync/modules/git/git.py
b/lib/portage/sync/modules/git/git.py
index ec13968f6..630f6e594 100644
--- a/lib/portage/sync/modules/git/git.py
+++ b/lib/portage/sync/modules/git/git.py
@@ -301,7 +301,8 @@ class GitSync(NewBase):
git_cmd_opts,
)
- writemsg_level(git_cmd + "\n")
+ if not quiet:
+ writemsg_level(git_cmd + "\n")
rev_cmd = [self.bin_command, "rev-list", "--max-count=1", "HEAD"]
previous_rev = subprocess.check_output(