Browse Source

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

tags/v1.21.12.1
zeripath Lauris BH 6 years ago
parent
commit
159294f799
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/repo_mirror.go

+ 1
- 1
models/repo_mirror.go View File

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