Skip to content

Commit 4678b48

Browse files
authored
Fix push batches to 25 refspecs at once
#129 introduced this logic, however it created batches of 100 refspecs with overlaps between the pushes (0-100, 25-125 etc.) causing unnecessary duplication of work.
1 parent 304d301 commit 4678b48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/push/push.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func (pushService *pushService) createRepository() (*github.Repository, error) {
166166
func splitLargeRefSpecs(refSpecs []config.RefSpec) [][]config.RefSpec {
167167
splitRefSpecs := [][]config.RefSpec{}
168168
for i := 0; i < len(refSpecs); i += 25 {
169-
end := i + 100
169+
end := i + 25
170170
if end > len(refSpecs) {
171171
end = len(refSpecs)
172172
}

0 commit comments

Comments
 (0)