0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-12-12 06:19:38 +01:00

Update tests/integration/compare_test.go

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Signed-off-by: badhezi <zlilaharon@gmail.com>
This commit is contained in:
badhezi 2025-10-08 11:56:32 +03:00 committed by GitHub
parent 7e6d45fd72
commit ecdce1800c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,7 +174,7 @@ func TestCompareRawDiffNormal(t *testing.T) {
session := loginUser(t, user1.Name)
r, _ := gitrepo.OpenRepository(db.DefaultContext, repo)
defer r.Close()
oldRef, _ := r.GetBranchCommit(repo.DefaultBranch)
oldBlobRef, _ := revParse(r, oldRef.ID.String(), "README.md")