You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use git.HOME_PATH for Git HOME directory (go-gitea#20114)
Before, in go-gitea#19732, the old home directory is not correct.
This PR introduces a new config option for git home: git.HOME_PATH,
which is default to %(APP_DATA_PATH)/home
And pass env GNUPGHOME to git command, force Gitea to use a stable GNUPGHOME directory
Copy file name to clipboardExpand all lines: docs/content/doc/advanced/config-cheat-sheet.en-us.md
+2
Original file line number
Diff line number
Diff line change
@@ -947,6 +947,8 @@ Default templates for project boards:
947
947
## Git (`git`)
948
948
949
949
-`PATH`: **""**: The path of Git executable. If empty, Gitea searches through the PATH environment.
950
+
-`HOME_PATH`: **%(APP_DATA_PATH)/home**: The HOME directory for Git.
951
+
This directory will be used to contain the `.gitconfig` and possible `.gnupg` directories that Gitea's git calls will use. If you can confirm Gitea is the only application running in this environment, you can set it to the normal home directory for Gitea user.
950
952
-`DISABLE_DIFF_HIGHLIGHT`: **false**: Disables highlight of added and removed changes.
951
953
-`MAX_GIT_DIFF_LINES`: **1000**: Max number of lines allowed of a single file in diff view.
952
954
-`MAX_GIT_DIFF_LINE_CHARACTERS`: **5000**: Max character count per line highlighted in diff view.
0 commit comments