Skip to content

Commit 8b54b58

Browse files
wrandersguillep2k
authored andcommitted
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 <[email protected]> * Be direct in consequences Co-Authored-By: guillep2k <[email protected]>
1 parent 7a8e299 commit 8b54b58

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/content/doc/usage/backup-and-restore.en-us.md

+6
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,9 @@ mysql -u$USER -p$PASS $DATABASE <gitea-db.sql
7979
# or sqlite3 $DATABASE_PATH <gitea-db.sql
8080
service gitea restart
8181
```
82+
83+
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.
84+
85+
With Gitea running, and from the directory Gitea's binary is located, execute: `./gitea admin regenerate hooks`
86+
87+
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.

0 commit comments

Comments
 (0)