Skip to content

Commit d21daba

Browse files
zeripathtechknowlogick
authored andcommitted
When mirroring we should set the remote to mirror (#6824) (#6834)
1 parent 34ba1c8 commit d21daba

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)