diff options
author | Peter GardfjÀll <peter.gardfjall.work@gmail.com> | 2022-04-01 16:14:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 22:14:36 +0800 |
commit | 58c9d12933236c57be958a7e09b8049712624c60 (patch) | |
tree | b9aadb6b3b693bf3f86a5693c50ef36de33996dc /modules/repository/create.go | |
parent | 65f17bfc31f0f2659978d4d1d5ff825146c53a4d (diff) | |
download | gitea-58c9d12933236c57be958a7e09b8049712624c60.tar.gz gitea-58c9d12933236c57be958a7e09b8049712624c60.zip |
A pull-mirror repo should be marked as such on creation (#19295)
Right now, a pull-mirror repo does not get marked as such until *after* the
mirroring completes. In the meantime, it will show up (in API and UI) as a
regular repo.
Diffstat (limited to 'modules/repository/create.go')
-rw-r--r-- | modules/repository/create.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/repository/create.go b/modules/repository/create.go index 33039d77c2..21d45c896e 100644 --- a/modules/repository/create.go +++ b/modules/repository/create.go @@ -54,6 +54,7 @@ func CreateRepository(doer, u *user_model.User, opts models.CreateRepoOptions) ( Status: opts.Status, IsEmpty: !opts.AutoInit, TrustModel: opts.TrustModel, + IsMirror: opts.IsMirror, } var rollbackRepo *repo_model.Repository |