From cd5d28eee8642079af0f2f7c2ae05c08da5e75d9 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Mon, 19 Jun 2017 00:34:00 -0400 Subject: [PATCH] Fix bug in GetCommitInfos (#66) --- tree_entry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tree_entry.go b/tree_entry.go index f3b060345..f494d5f57 100644 --- a/tree_entry.go +++ b/tree_entry.go @@ -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) } }