Fix GetCommitBranchStart bug (#33298)

Fix #33265
Fix #33370

This PR also fixes some bugs in `TestGitGeneral`.
This commit is contained in:
Zettat123 2025-01-28 10:59:15 +08:00 committed by GitHub
parent 8f433132e1
commit a9577e0808
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 49 additions and 30 deletions

View file

@ -357,5 +357,5 @@ func Test_GetCommitBranchStart(t *testing.T) {
startCommitID, err := repo.GetCommitBranchStart(os.Environ(), "branch1", commit.ID.String())
assert.NoError(t, err)
assert.NotEmpty(t, startCommitID)
assert.EqualValues(t, "9c9aef8dd84e02bc7ec12641deb4c930a7c30185", startCommitID)
assert.EqualValues(t, "95bb4d39648ee7e325106df01a621c530863a653", startCommitID)
}