diff --git a/docs/administration/config-cheat-sheet.md b/docs/administration/config-cheat-sheet.md index a0d71309..5ee3fc26 100644 --- a/docs/administration/config-cheat-sheet.md +++ b/docs/administration/config-cheat-sheet.md @@ -151,8 +151,6 @@ In addition, there is _`StaticRootPath`_ which can be set as a built-in at build - `DISABLE_MIGRATIONS`: **false**: Disable migrating feature. - `DISABLE_STARS`: **false**: Disable stars feature. - `DEFAULT_BRANCH`: **main**: Default branch name of all repositories. -- `ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`: **false**: Allow non-admin users to adopt unadopted repositories -- `ALLOW_DELETION_OF_UNADOPTED_REPOSITORIES`: **false**: Allow non-admin users to delete unadopted repositories - `DISABLE_DOWNLOAD_SOURCE_ARCHIVES`: **false**: Don't allow download source archive files from UI - `ALLOW_FORK_WITHOUT_MAXIMUM_LIMIT`: **true**: Allow to fork repositories without maximum number limit - `ALLOW_FORK_INTO_SAME_OWNER`: **false**: Allow to fork repositories into the same owner (user or organization). diff --git a/docs/help/faq.md b/docs/help/faq.md index e13ecb41..95e138e8 100644 --- a/docs/help/faq.md +++ b/docs/help/faq.md @@ -328,14 +328,8 @@ It is highly recommended to back-up your database before running these commands. ## How to adopt repositories from disk -- Add your (bare) repositories to the correct spot for your configuration (`repository.ROOT`), ensuring they are in the correct layout `/[user]/[repo].git`. - - **Note:** the directory names must be lowercase. - - You can also check `/-/admin/config` for the repository root path. -- Ensure that the user/org exists that you want to adopt repositories for. -- As an admin, go to `/-/admin/repos/unadopted` and search. - - Users can also be given similar permissions via config [`ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`](../administration/config-cheat-sheet.md#repository-repository). -- If the above steps are done correctly, you should be able to select repositories to adopt. - - If no repositories are found, enable [debug logging](../administration/config-cheat-sheet.md#repository-repository) to check for any specific errors. +To import repositories from disk, use the [Gitea importer](https://gitea.com/gitea/importer) with `--source-type local`. +If the repositories are already under Gitea's repository root, move them outside it before importing to avoid conflicts with destination paths. ## Gitea can't start on NFS diff --git a/i18n/zh-cn/docs/current/administration/config-cheat-sheet.md b/i18n/zh-cn/docs/current/administration/config-cheat-sheet.md index 7b8ab1b6..ada6bf27 100644 --- a/i18n/zh-cn/docs/current/administration/config-cheat-sheet.md +++ b/i18n/zh-cn/docs/current/administration/config-cheat-sheet.md @@ -114,8 +114,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**: 允许将仓库派生到同一所有者(用户或组织)中。此功能为实验性功能,尚未完全测试,将来可能会更改。 diff --git a/i18n/zh-cn/docs/current/help/faq.md b/i18n/zh-cn/docs/current/help/faq.md index e99bb62f..f8704246 100644 --- a/i18n/zh-cn/docs/current/help/faq.md +++ b/i18n/zh-cn/docs/current/help/faq.md @@ -423,11 +423,5 @@ gitea doctor recreate-table ## 如何从磁盘采用存储库 -- 将您的(裸)存储库添加到正确的位置,即您的配置所在的地方(`repository.ROOT`),确保它们位于正确的布局`/[user]/[repo].git`。 - - **注意:**目录名必须为小写。 - - 您还可以在`/admin/config`中检查存储库根路径。 -- 确保存在要采用存储库的用户/组织。 -- 作为管理员,转到`/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 的仓库根目录下,请先将其移到该目录之外,再导入,以免与目标路径冲突。 diff --git a/i18n/zh-tw/docs/current/administration/config-cheat-sheet.md b/i18n/zh-tw/docs/current/administration/config-cheat-sheet.md index b7389e91..b2041e90 100644 --- a/i18n/zh-tw/docs/current/administration/config-cheat-sheet.md +++ b/i18n/zh-tw/docs/current/administration/config-cheat-sheet.md @@ -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**: 允許將儲存庫派生到同一所有者(使用者或組織)中。此功能為實驗性功能,尚未完全測試,將來可能會更改。 diff --git a/i18n/zh-tw/docs/current/help/faq.md b/i18n/zh-tw/docs/current/help/faq.md index 68946f6c..94508964 100644 --- a/i18n/zh-tw/docs/current/help/faq.md +++ b/i18n/zh-tw/docs/current/help/faq.md @@ -425,11 +425,5 @@ gitea doctor recreate-table ## 如何從磁盤採用儲存庫 -- 將您的(裸)儲存庫添加到正確的位置,即您的設定所在的地方(`repository.ROOT`),確保它們位於正確的佈局`/[user]/[repo].git`。 - - **注意:**目錄名必須為小寫。 - - 您還可以在`/admin/config`中檢查儲存庫根路徑。 -- 確保存在要採用儲存庫的使用者/組織。 -- 作為管理員,轉到`/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 的儲存庫根目錄下,請先將其移到該目錄之外,再匯入,以免與目標路徑衝突。