aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeripath2019-05-02 20:57:19 +0100
committertechknowlogick2019-05-02 15:57:19 -0400
commitd21dabab4e43412858818039a0f81d48445aef7f (patch)
tree64339ce53a241410642069ed51b827ac74723856
parent34ba1c8957211607a906cb7d48121a1f16bed28a (diff)
When mirroring we should set the remote to mirror (#6824) (#6834)
-rw-r--r--models/repo_mirror.go2
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
}