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

Commit 7b07391

Browse files
ethantkoeniglunny
authored andcommitted
Fix bug in GetCommitInfos (#57)
1 parent c98a6f3 commit 7b07391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tree_entry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func getNextCommitInfos(state *getCommitInfoState) error {
266266
func logCommand(exclusiveStartHash string, state *getCommitInfoState) *Command {
267267
var commitHash string
268268
if len(exclusiveStartHash) == 0 {
269-
commitHash = "HEAD"
269+
commitHash = state.headCommit.ID.String()
270270
} else {
271271
commitHash = exclusiveStartHash + "^"
272272
}

0 commit comments

Comments
 (0)