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

Commit

Permalink
Fix bug in GetCommitInfos (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethantkoenig authored and lunny committed Jun 19, 2017
1 parent fb22c9e commit cd5d28e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tree_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit cd5d28e

Please sign in to comment.