Skip to content

Commit ec760fd

Browse files
committed
cmd/gitmirror: update docs
Change-Id: If8b2dbde8001f6b89af52b34785bd894a6454e35 Reviewed-on: https://go-review.googlesource.com/127315 Reviewed-by: Andrew Bonventre <[email protected]>
1 parent 0d76291 commit ec760fd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmd/gitmirror/gitmirror.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,12 @@ func (r *Repo) fetch() (err error) {
10771077
})
10781078
}
10791079

1080-
// push runs "git push -f --mirror dest" in the repository root.
1080+
// push effectively runs "git push -f --mirror dest" in the repository
1081+
// root, but does things in smaller batches of refs, to work around
1082+
// performance problems we saw in the past. (They might have been
1083+
// fixed by later version of git; they seemed to only affect the HTTP
1084+
// transport, but not ssh)
1085+
//
10811086
// It tries three times, just in case it failed because of a transient error.
10821087
func (r *Repo) push() (err error) {
10831088
n := 0

0 commit comments

Comments
 (0)