Browse Source

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

tags/v1.8.1
zeripath 6 years ago committed by techknowlogick
parent
commit
d21dabab4e
  1. 2
      models/repo_mirror.go

2
models/repo_mirror.go

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