Skip to content

Commit 159294f

Browse files
zeripathlafriks
authored andcommitted
When mirroring we should set the remote to mirror (#6824)
1 parent 8979276 commit 159294f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo_mirror.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (m *Mirror) SaveAddress(addr string) error {
128128
return err
129129
}
130130

131-
_, err = git.NewCommand("remote", "add", "origin", addr).RunInDir(repoPath)
131+
_, err = git.NewCommand("remote", "add", "origin", "--mirror=fetch", addr).RunInDir(repoPath)
132132
return err
133133
}
134134

0 commit comments

Comments
 (0)