1
0
mirror of https://github.com/go-gitea/git.git synced 2026-02-05 15:45:40 +01:00

Fix bug in GetCommitInfos (#57)

This commit is contained in:
Ethan Koenig
2017-05-31 20:33:00 -04:00
committed by Lunny Xiao
parent c98a6f353a
commit 7b07391b09

View File

@@ -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 + "^"
}