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/base | |
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/base')
-rw-r--r-- | modules/migrations/base/repo.go | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/modules/migrations/base/repo.go b/modules/migrations/base/repo.go index 5cfb0de920..d2052da90d 100644 --- a/modules/migrations/base/repo.go +++ b/modules/migrations/base/repo.go @@ -7,13 +7,14 @@ package base // Repository defines a standard repository information type Repository struct { - Name string - Owner string - IsPrivate bool - IsMirror bool - Description string - AuthUsername string - AuthPassword string - CloneURL string - OriginalURL string + Name string + Owner string + IsPrivate bool + IsMirror bool + Description string + AuthUsername string + AuthPassword string + CloneURL string + OriginalURL string + DefaultBranch string } |