Skip to content
This repository was archived by the owner on Apr 12, 2019. It is now read-only.

Commit cd5d28e

Browse files
ethantkoeniglunny
authored andcommitted
Fix bug in GetCommitInfos (#66)
1 parent fb22c9e commit cd5d28e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tree_entry.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ func logCommand(exclusiveStartHash string, state *getCommitInfoState) *Command {
284284
searchSize := (numRemainingEntries + 1) / 2
285285
command = NewCommand("log", prettyLogFormat, "--name-only",
286286
"-"+strconv.Itoa(searchSize), commitHash, "--")
287-
for path, entry := range state.entries {
288-
if _, ok := state.commits[entry.Name()]; !ok {
287+
for path := range state.entries {
288+
if _, ok := state.commits[path]; !ok {
289289
command.AddArguments(path)
290290
}
291291
}

0 commit comments

Comments
 (0)