From dddbdb011255c2c368b878b2849a21a0591e3ba3 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 28 Jun 2017 12:43:54 +0200 Subject: [PATCH] libkas: Improve reporting of repo_fetch Instead of writing "commit", issue a more telling log message if some repo already contains the required hash. Signed-off-by: Jan Kiszka --- kas/libkas.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kas/libkas.py b/kas/libkas.py index 773ac99..5363709 100644 --- a/kas/libkas.py +++ b/kas/libkas.py @@ -174,8 +174,10 @@ def repo_fetch(config, repo): # Does refspec exist in the current repository? (retc, output) = run_cmd(['/usr/bin/git', 'cat-file', '-t', repo.refspec], env=config.environ, - cwd=repo.path, fail=False) + cwd=repo.path, fail=False, liveupdate=False) if retc == 0: + logging.info('Repository %s already contains %s as %s', + repo.name, repo.refspec, output.strip()) return # No it is missing, try to fetch