diff options
author | 6543 <6543@obermui.de> | 2020-09-15 16:37:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-15 22:37:44 +0800 |
commit | 6c61f498ea6edb9260bc2b2b8db5bc3cb9214522 (patch) | |
tree | 9d1322d4ff85aec9d24f98f65d72c5a54cc1838d /modules/migrations/gitlab_test.go | |
parent | 3d0ad2885a25012ba08c42a4ed181dc22dd72770 (diff) | |
download | gitea-6c61f498ea6edb9260bc2b2b8db5bc3cb9214522.tar.gz gitea-6c61f498ea6edb9260bc2b2b8db5bc3cb9214522.zip |
On Migration respect old DefaultBranch (#12843)
* On Migration respect old DefaultBranch
* add DefaultBranch int test set
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules/migrations/gitlab_test.go')
-rw-r--r-- | modules/migrations/gitlab_test.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/migrations/gitlab_test.go b/modules/migrations/gitlab_test.go index 936201b1f2..11c3aefeaf 100644 --- a/modules/migrations/gitlab_test.go +++ b/modules/migrations/gitlab_test.go @@ -37,11 +37,12 @@ func TestGitlabDownloadRepo(t *testing.T) { assert.NoError(t, err) // Repo Owner is blank in Gitlab Group repos assert.EqualValues(t, &base.Repository{ - Name: "test_repo", - Owner: "", - Description: "Test repository for testing migration from gitlab to gitea", - CloneURL: "https://gitlab.com/gitea/test_repo.git", - OriginalURL: "https://gitlab.com/gitea/test_repo", + Name: "test_repo", + Owner: "", + Description: "Test repository for testing migration from gitlab to gitea", + CloneURL: "https://gitlab.com/gitea/test_repo.git", + OriginalURL: "https://gitlab.com/gitea/test_repo", + DefaultBranch: "master", }, repo) topics, err := downloader.GetTopics() |