mirror of
https://github.com/go-gitea/git.git
synced 2026-02-05 15:45:40 +01:00
Fix bug in GetCommitInfos (#66)
This commit is contained in:
@@ -284,8 +284,8 @@ func logCommand(exclusiveStartHash string, state *getCommitInfoState) *Command {
|
||||
searchSize := (numRemainingEntries + 1) / 2
|
||||
command = NewCommand("log", prettyLogFormat, "--name-only",
|
||||
"-"+strconv.Itoa(searchSize), commitHash, "--")
|
||||
for path, entry := range state.entries {
|
||||
if _, ok := state.commits[entry.Name()]; !ok {
|
||||
for path := range state.entries {
|
||||
if _, ok := state.commits[path]; !ok {
|
||||
command.AddArguments(path)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user