1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-01 17:05:48 +00:00

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

This commit is contained in:
zeripath 2019-05-02 20:57:19 +01:00 committed by techknowlogick
parent 34ba1c8957
commit d21dabab4e

View File

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