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.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.go')
-rw-r--r-- | modules/migrations/gitlab.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/migrations/gitlab.go b/modules/migrations/gitlab.go index 13d2618030..e6529af9de 100644 --- a/modules/migrations/gitlab.go +++ b/modules/migrations/gitlab.go @@ -139,12 +139,13 @@ func (g *GitlabDownloader) GetRepoInfo() (*base.Repository, error) { // convert gitlab repo to stand Repo return &base.Repository{ - Owner: owner, - Name: gr.Name, - IsPrivate: private, - Description: gr.Description, - OriginalURL: gr.WebURL, - CloneURL: gr.HTTPURLToRepo, + Owner: owner, + Name: gr.Name, + IsPrivate: private, + Description: gr.Description, + OriginalURL: gr.WebURL, + CloneURL: gr.HTTPURLToRepo, + DefaultBranch: gr.DefaultBranch, }, nil } |