mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-27 04:35:42 +08: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.