When pushing to other remotes, ignore 'origin'
Since we just fetched from 'origin' there is no point trying to push again there. Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
3951266e79
commit
a7e5367dcd
1 changed files with 2 additions and 0 deletions
|
@ -116,6 +116,8 @@ class MirrorFromPagure(object):
|
|||
output = run_command(cmd, cwd=dest_folder).decode("utf-8").strip()
|
||||
if output:
|
||||
for remote in output.split("\n"):
|
||||
if remote == "origin":
|
||||
continue
|
||||
_log.info(" Running git push --mirror against %s", remote)
|
||||
cmd = ["git", "push", "--mirror", remote]
|
||||
run_command(cmd, cwd=dest_folder)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue