You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/options/locale
zeripath 7a7f56044a
Adopt repositories (#12920)
* Don't automatically delete repository files if they are present

Prior to this PR Gitea would delete any repository files if they are
present during creation or migration. This can in certain circumstances
lead to data-loss and is slightly unpleasant.

This PR provides a mechanism for Gitea to adopt repositories on creation
and otherwise requires an explicit flag for deletion.

PushCreate is slightly different - the create will cause adoption if
that is allowed otherwise it will delete the data if that is allowed.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Update swagger

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Fix tests and migrate overwrite

Signed-off-by: Andrew Thornton <art27@cantab.net>

* as per @lunny

Only offer to adopt or overwrite if the user can do that.

Allow the site administrator to adopt or overwrite in all
circumstances

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Use setting.Repository.DefaultBranch for the default branch

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Always set setting.Repository.DefaultBranch

Signed-off-by: Andrew Thornton <art27@cantab.net>

* update swagger

Signed-off-by: Andrew Thornton <art27@cantab.net>

* update templates

Signed-off-by: Andrew Thornton <art27@cantab.net>

* ensure repo closed

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Rewrite of adoption as per @6543 and @lunny

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Apply suggestions from code review

* update swagger

Signed-off-by: Andrew Thornton <art27@cantab.net>

* missing not

Signed-off-by: Andrew Thornton <art27@cantab.net>

* add modals and flash reporting

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Make the unadopted page searchable

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add API

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Fix swagger

Signed-off-by: Andrew Thornton <art27@cantab.net>

* fix swagger

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Handle empty and non-master branched repositories

Signed-off-by: Andrew Thornton <art27@cantab.net>

* placate lint

Signed-off-by: Andrew Thornton <art27@cantab.net>

* remove commented out code

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
..
TRANSLATORS European Portuguese translation (#11568) 4 years ago
locale_bg-BG.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_cs-CZ.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_de-DE.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_en-US.ini Adopt repositories (#12920) 4 years ago
locale_es-ES.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_fa-IR.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_fi-FI.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_fr-FR.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_hu-HU.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_id-ID.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_it-IT.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_ja-JP.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_ko-KR.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_lv-LV.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_ml-IN.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_nl-NL.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_pl-PL.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_pt-BR.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_pt-PT.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_ru-RU.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_sr-SP.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_sv-SE.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_tr-TR.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_uk-UA.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_zh-CN.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_zh-HK.ini [skip ci] Updated translations via Crowdin 4 years ago
locale_zh-TW.ini [skip ci] Updated translations via Crowdin 4 years ago