Skip to content

Commit 76cd01f

Browse files
Merge branch 'main' into fix-16802-add-primary-key-to-resource_index
2 parents 33cc8f7 + e891d68 commit 76cd01f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

modules/git/log_name_status.go

+3
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ func (g *LogNameStatusRepoParser) Next(treepath string, paths2ids map[string]int
167167
return nil, err
168168
}
169169
}
170+
if len(g.next) == 0 {
171+
return &ret, nil
172+
}
170173
if g.next[0] == '\x00' {
171174
g.buffull = false
172175
g.next, err = g.rd.ReadSlice('\x00')

routers/web/repo/branch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func loadBranches(ctx *context.Context, skip, limit int) ([]*Branch, int) {
217217
branches = append(branches, deletedBranches...)
218218
}
219219

220-
return branches, totalNumOfBranches - 1
220+
return branches, totalNumOfBranches
221221
}
222222

223223
func loadOneBranch(ctx *context.Context, rawBranch *git.Branch, protectedBranches []*models.ProtectedBranch,

0 commit comments

Comments
 (0)