mirror_pagure_ansible: sync changes from upstream

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-05-05 21:14:25 +02:00
parent 264c02255e
commit fa95f7c062

View file

@ -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: