diff --git a/tree_entry.go b/tree_entry.go index 58c513246..7f454ab56 100644 --- a/tree_entry.go +++ b/tree_entry.go @@ -266,7 +266,7 @@ func getNextCommitInfos(state *getCommitInfoState) error { func logCommand(exclusiveStartHash string, state *getCommitInfoState) *Command { var commitHash string if len(exclusiveStartHash) == 0 { - commitHash = "HEAD" + commitHash = state.headCommit.ID.String() } else { commitHash = exclusiveStartHash + "^" }