diff options
author | zeripath | 2019-05-02 20:57:19 +0100 |
---|---|---|
committer | techknowlogick | 2019-05-02 15:57:19 -0400 |
commit | d21dabab4e43412858818039a0f81d48445aef7f (patch) | |
tree | 64339ce53a241410642069ed51b827ac74723856 | |
parent | 34ba1c8957211607a906cb7d48121a1f16bed28a (diff) |
When mirroring we should set the remote to mirror (#6824) (#6834)
-rw-r--r-- | models/repo_mirror.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo_mirror.go b/models/repo_mirror.go index 6205ab3b2..cdc1f4d95 100644 --- a/models/repo_mirror.go +++ b/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 } |