From a62e84ba30bb502c1eecee7453ed9e733538a77c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 5 May 2020 21:13:56 +0200 Subject: [PATCH] Improving the logging so it is clearer what is happening and where Signed-off-by: Pierre-Yves Chibon --- mirror_from_pagure_bus.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mirror_from_pagure_bus.py b/mirror_from_pagure_bus.py index 59ef4d3..70bf628 100644 --- a/mirror_from_pagure_bus.py +++ b/mirror_from_pagure_bus.py @@ -106,7 +106,7 @@ class MirrorFromPagure(object): run_command(cmd, cwd=self.path) _log.info( - " Running git fetch with transfer.fsckObjects=1 in %s", + " Running `git -c transfer.fsckObjects=1 fetch` in %s", dest_folder, ) cmd = ["git", "-c", "transfer.fsckObjects=1", "fetch"] @@ -118,7 +118,9 @@ class MirrorFromPagure(object): for remote in output.split("\n"): if remote == "origin": continue - _log.info(" Running git push --mirror against %s", remote) + _log.info( + " Running git push --mirror %s in %s", + remote, dest_folder) cmd = ["git", "push", "--mirror", remote] run_command(cmd, cwd=dest_folder) else: