mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-12 19:19:41 +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:
parent
7e6d45fd72
commit
ecdce1800c
@ -174,7 +174,7 @@ func TestCompareRawDiffNormal(t *testing.T) {
|
|||||||
session := loginUser(t, user1.Name)
|
session := loginUser(t, user1.Name)
|
||||||
|
|
||||||
r, _ := gitrepo.OpenRepository(db.DefaultContext, repo)
|
r, _ := gitrepo.OpenRepository(db.DefaultContext, repo)
|
||||||
|
defer r.Close()
|
||||||
oldRef, _ := r.GetBranchCommit(repo.DefaultBranch)
|
oldRef, _ := r.GetBranchCommit(repo.DefaultBranch)
|
||||||
oldBlobRef, _ := revParse(r, oldRef.ID.String(), "README.md")
|
oldBlobRef, _ := revParse(r, oldRef.ID.String(), "README.md")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user