When mirroring we should set the remote to mirror (#6824)

release/v1.9
zeripath 5 years ago committed by Lauris BH
parent 897927690f
commit 159294f799

@ -128,7 +128,7 @@ func (m *Mirror) SaveAddress(addr string) error {
return err
}
_, err = git.NewCommand("remote", "add", "origin", addr).RunInDir(repoPath)
_, err = git.NewCommand("remote", "add", "origin", "--mirror=fetch", addr).RunInDir(repoPath)
return err
}

Loading…
Cancel
Save