1
0
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:
Ethan Koenig
2017-06-19 00:34:00 -04:00
committed by Lunny Xiao
parent fb22c9ecdb
commit cd5d28eee8

View File

@@ -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)
}
}