mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Fix commit between two commits calculation if there is only last commit (#10225)
This commit is contained in:
		| @@ -319,7 +319,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) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user