mirror of
https://gitee.com/gitea/gitea
synced 2025-11-05 17:10:24 +08:00
* Be more strict with git arguments * fix-up commit test * use bindings for branch name
This commit is contained in:
@@ -55,5 +55,5 @@ func TestGetCommitWithBadCommitID(t *testing.T) {
|
||||
commit, err := bareRepo1.GetCommit("bad_branch")
|
||||
assert.Nil(t, commit)
|
||||
assert.Error(t, err)
|
||||
assert.EqualError(t, err, "object does not exist [id: bad_branch, rel_path: ]")
|
||||
assert.True(t, IsErrNotExist(err))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user