mirror_pagure_ansible: sync changes from upstream
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
264c02255e
commit
fa95f7c062
1 changed files with 4 additions and 2 deletions
|
@ -106,7 +106,7 @@ class MirrorFromPagure(object):
|
||||||
run_command(cmd, cwd=self.path)
|
run_command(cmd, cwd=self.path)
|
||||||
|
|
||||||
_log.info(
|
_log.info(
|
||||||
" Running git fetch with transfer.fsckObjects=1 in %s",
|
" Running `git -c transfer.fsckObjects=1 fetch` in %s",
|
||||||
dest_folder,
|
dest_folder,
|
||||||
)
|
)
|
||||||
cmd = ["git", "-c", "transfer.fsckObjects=1", "fetch"]
|
cmd = ["git", "-c", "transfer.fsckObjects=1", "fetch"]
|
||||||
|
@ -118,7 +118,9 @@ class MirrorFromPagure(object):
|
||||||
for remote in output.split("\n"):
|
for remote in output.split("\n"):
|
||||||
if remote == "origin":
|
if remote == "origin":
|
||||||
continue
|
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]
|
cmd = ["git", "push", "--mirror", remote]
|
||||||
run_command(cmd, cwd=dest_folder)
|
run_command(cmd, cwd=dest_folder)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue