THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

浏览代码

Include git-hook regeneration in restore documentation (#8181)

* Added admin cmd ref to backup-restore guide

* Clarified reason for command execution

* Include directive for where command should be executed from

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>

* Be direct in consequences

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
tags/v1.10.0-rc1
W Anders Lunny Xiao <xiaolunwen@gmail.com> 2 个月前
父节点
当前提交
8b54b58bc5
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      docs/content/doc/usage/backup-and-restore.en-us.md

+ 6
- 0
docs/content/doc/usage/backup-and-restore.en-us.md 查看文件

@@ -79,3 +79,9 @@ mysql -u$USER -p$PASS $DATABASE <gitea-db.sql
# or sqlite3 $DATABASE_PATH <gitea-db.sql
service gitea restart
```

Repository git-hooks should be regenerated if installation method is changed (eg. binary -> Docker), or if Gitea is installed to a different directory than the previous installation.

With Gitea running, and from the directory Gitea's binary is located, execute: `./gitea admin regenerate hooks`

This ensures that application and configuration file paths in repository git-hooks are consistent and applicable to the current installation. If these paths are not updated, repository `push` actions will fail.

正在加载...
取消
保存