mirror of
https://gitea.com/gitea/docs.git
synced 2026-11-16 06:43:45 +00:00
Remove repository adoption docs (#639)
Documents https://github.com/go-gitea/gitea/pull/40181 for main, which removes repository adoption and the `ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES` and `ALLOW_DELETION_OF_UNADOPTED_REPOSITORIES` settings. The FAQ entry now points to the Gitea importer for importing repositories from disk. Draft until the Gitea PR merges. _Written by Claude (Opus 5.5)._ --------- Co-authored-by: Lunny Xiao <[email protected]> Reviewed-on: https://gitea.com/gitea/docs/pulls/639 Reviewed-by: Lunny Xiao <[email protected]> Co-authored-by: silverwind <[email protected]>
This commit is contained in:
1 parent
bf8f4ce394
commit
cfd22c91bd
6 files changed
+6
-30
No files matched your search
@@ -115,8 +115,6 @@ aliases:
|
||||
- `DISABLE_MIGRATIONS`: **false**: 禁用遷移功能。
|
||||
- `DISABLE_STARS`: **false**: 禁用點贊功能。
|
||||
- `DEFAULT_BRANCH`: **main**: 所有儲存庫的預設分支名稱。
|
||||
- `ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`: **false**: 允許非管理員使用者認領未被認領的儲存庫。
|
||||
- `ALLOW_DELETION_OF_UNADOPTED_REPOSITORIES`: **false**: 允許非管理員使用者刪除未被認領的儲存庫。
|
||||
- `DISABLE_DOWNLOAD_SOURCE_ARCHIVES`: **false**: 不允許從使用者介面下載源程式碼存檔文件。
|
||||
- `ALLOW_FORK_WITHOUT_MAXIMUM_LIMIT`: **true**: 允許無限制得派生儲存庫。
|
||||
- `ALLOW_FORK_INTO_SAME_OWNER`: **false**: 允許將儲存庫派生到同一所有者(使用者或組織)中。此功能為實驗性功能,尚未完全測試,將來可能會更改。
|
||||
|
||||
@@ -425,11 +425,5 @@ gitea doctor recreate-table
|
||||
|
||||
## 如何從磁盤採用儲存庫
|
||||
|
||||
- 將您的(裸)儲存庫添加到正確的位置,即您的設定所在的地方(`repository.ROOT`),確保它們位於正確的佈局`<REPO_ROOT>/[user]/[repo].git`。
|
||||
- **注意:**目錄名必須為小寫。
|
||||
- 您還可以在`<ROOT_URL>/admin/config`中檢查儲存庫根路徑。
|
||||
- 確保存在要採用儲存庫的使用者/組織。
|
||||
- 作為管理員,轉到`<ROOT_URL>/admin/repos/unadopted`並搜索。
|
||||
- 使用者也可以透過設定[`ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`](../administration/config-cheat-sheet.md) 獲得類似的權限。
|
||||
- 如果上述步驟都正確執行,您應該能夠選擇要採用的儲存庫。
|
||||
- 如果沒有找到儲存庫,請啟用[調試日誌記錄](../administration/config-cheat-sheet.md)以檢查是否有特定錯誤。
|
||||
若要從磁碟匯入儲存庫,請使用 [Gitea importer](https://gitea.com/gitea/importer),參數:`--source-type local`。
|
||||
如果儲存庫已位於 Gitea 的儲存庫根目錄下,請先將其移到該目錄之外,再匯入,以免與目標路徑衝突。
|
||||
Reference in new issue
Block a user