mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Fix bug when migrating repository (#34182)
This PR fixed a bug which is a regression from #31035
This commit is contained in:
		| @@ -25,7 +25,7 @@ func TestCreateRepositoryDirectly(t *testing.T) { | ||||
|  | ||||
| 	createdRepo, err := CreateRepositoryDirectly(git.DefaultContext, user2, user2, CreateRepoOptions{ | ||||
| 		Name: "created-repo", | ||||
| 	}) | ||||
| 	}, true) | ||||
| 	assert.NoError(t, err) | ||||
| 	assert.NotNil(t, createdRepo) | ||||
|  | ||||
| @@ -44,7 +44,7 @@ func TestCreateRepositoryDirectly(t *testing.T) { | ||||
|  | ||||
| 	createdRepo2, err := CreateRepositoryDirectly(db.DefaultContext, user2, user2, CreateRepoOptions{ | ||||
| 		Name: "created-repo", | ||||
| 	}) | ||||
| 	}, true) | ||||
| 	assert.Nil(t, createdRepo2) | ||||
| 	assert.Error(t, err) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user