mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Backport #33224 by lunny Fix #33200 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -20,6 +20,8 @@ func TestRefName(t *testing.T) { | ||||
|  | ||||
| 	// Test pull names | ||||
| 	assert.Equal(t, "1", RefName("refs/pull/1/head").PullName()) | ||||
| 	assert.True(t, RefName("refs/pull/1/head").IsPull()) | ||||
| 	assert.True(t, RefName("refs/pull/1/merge").IsPull()) | ||||
| 	assert.Equal(t, "my/pull", RefName("refs/pull/my/pull/head").PullName()) | ||||
|  | ||||
| 	// Test for branch names | ||||
|   | ||||
		Reference in New Issue
	
	Block a user