From 7ad67109d732bd560c8da0356aa555be467d786c Mon Sep 17 00:00:00 2001 From: zeripath Date: Mon, 5 Aug 2019 21:39:39 +0100 Subject: Be more strict with git arguments (#7715) * Be more strict with git arguments * fix-up commit test * use bindings for branch name --- modules/git/repo_commit_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/git/repo_commit_test.go') diff --git a/modules/git/repo_commit_test.go b/modules/git/repo_commit_test.go index c0fdd1697f..6d8ee6453f 100644 --- a/modules/git/repo_commit_test.go +++ b/modules/git/repo_commit_test.go @@ -58,5 +58,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)) } -- cgit v1.2.3