mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-09 03:11:51 +01:00
When mirroring we should set the remote to mirror (#6824)
This commit is contained in:
parent
897927690f
commit
159294f799
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue