mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 14:55:40 +03:00
83df0caf15
Gitea writes its own AppPath into git hook scripts. If Gitea's AppPath changes, then the git push will fail. This PR: * Introduce an AppState module, it can persist app states into database * During GlobalInit, Gitea will check if the current AppPath is the same as last one. If they don't match, Gitea will sync git hooks. * Refactor some code to make them more clear. * Also, "Detect if gitea binary's name changed" #11341 is related, we call models.RewriteAllPublicKeys to update ssh authorized_keys file |
||
---|---|---|
.. | ||
environment-to-ini | ||
fhs-compliant-script | ||
fixtures | ||
ide | ||
init | ||
launchd | ||
legal | ||
options/label | ||
pr | ||
supervisor | ||
systemd | ||
autoboot.sh | ||
mysql.sql | ||
README | ||
update_dependencies.sh |
All files in subdirectories are templates, do modifications based on your environment first.