mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-14 01:35:55 +09:00
When mirroring we should set the remote to mirror (#6824)
This commit is contained in:
1 parent
897927690f
commit
159294f799
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user