Skip to content

Commit

Permalink
Merge branch 'main' into fix-16802-add-primary-key-to-resource_index
Browse files Browse the repository at this point in the history
  • Loading branch information
techknowlogick authored Aug 25, 2021
2 parents 33cc8f7 + e891d68 commit 76cd01f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions modules/git/log_name_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ func (g *LogNameStatusRepoParser) Next(treepath string, paths2ids map[string]int
return nil, err
}
}
if len(g.next) == 0 {
return &ret, nil
}
if g.next[0] == '\x00' {
g.buffull = false
g.next, err = g.rd.ReadSlice('\x00')
Expand Down
2 changes: 1 addition & 1 deletion routers/web/repo/branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func loadBranches(ctx *context.Context, skip, limit int) ([]*Branch, int) {
branches = append(branches, deletedBranches...)
}

return branches, totalNumOfBranches - 1
return branches, totalNumOfBranches
}

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

0 comments on commit 76cd01f

Please sign in to comment.