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:
@@ -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 + "^"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user