소스 검색

Fix commit between two commits calculation if there is only last commit (#10225) (#10226)

tags/v1.11.1
Lauris BH 4 년 전
부모
커밋
8efd6b32e2
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      modules/git/repo_commit.go

+ 1
- 1
modules/git/repo_commit.go 파일 보기

@@ -318,7 +318,7 @@ func (repo *Repository) CommitsBetween(last *Commit, before *Commit) (*list.List
var stdout []byte
var err error
if before == nil {
stdout, err = NewCommand("rev-list", before.ID.String()).RunInDirBytes(repo.Path)
stdout, err = NewCommand("rev-list", last.ID.String()).RunInDirBytes(repo.Path)
} else {
stdout, err = NewCommand("rev-list", before.ID.String()+"..."+last.ID.String()).RunInDirBytes(repo.Path)
}

Loading…
취소
저장