aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorW Anders <wranders@protonmail.com>2019-09-14 21:37:09 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2019-09-15 10:37:09 +0800
commit8b54b58bc589d501c3459f1dbf8ba0b564cdc4e0 (patch)
treea73adb07a7e417f2f25cb7eeb6f1a80aa219f112 /docs
parent7a8e299c7c7b4f83b8280ab2b069ddaed9f34d0f (diff)
downloadgitea-8b54b58bc589d501c3459f1dbf8ba0b564cdc4e0.tar.gz
gitea-8b54b58bc589d501c3459f1dbf8ba0b564cdc4e0.zip
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>
Diffstat (limited to 'docs')
-rw-r--r--docs/content/doc/usage/backup-and-restore.en-us.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/content/doc/usage/backup-and-restore.en-us.md b/docs/content/doc/usage/backup-and-restore.en-us.md
index 5cf2f4aec8..a3887bc64a 100644
--- a/docs/content/doc/usage/backup-and-restore.en-us.md
+++ b/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.