mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	On Migration respect old DefaultBranch (#12843)
* On Migration respect old DefaultBranch * add DefaultBranch int test set Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
		| @@ -72,11 +72,12 @@ func TestGitHubDownloadRepo(t *testing.T) { | ||||
| 	repo, err := downloader.GetRepoInfo() | ||||
| 	assert.NoError(t, err) | ||||
| 	assert.EqualValues(t, &base.Repository{ | ||||
| 		Name:        "test_repo", | ||||
| 		Owner:       "go-gitea", | ||||
| 		Description: "Test repository for testing migration from github to gitea", | ||||
| 		CloneURL:    "https://github.com/go-gitea/test_repo.git", | ||||
| 		OriginalURL: "https://github.com/go-gitea/test_repo", | ||||
| 		Name:          "test_repo", | ||||
| 		Owner:         "go-gitea", | ||||
| 		Description:   "Test repository for testing migration from github to gitea", | ||||
| 		CloneURL:      "https://github.com/go-gitea/test_repo.git", | ||||
| 		OriginalURL:   "https://github.com/go-gitea/test_repo", | ||||
| 		DefaultBranch: "master", | ||||
| 	}, repo) | ||||
|  | ||||
| 	topics, err := downloader.GetTopics() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user