Skip to content

Commit 3b81e40

Browse files
wxiaoguangzeripath6543justusbunsilunny
authored andcommitted
Use git.HOME_PATH for Git HOME directory (go-gitea#20114)
* Add git.HOME_PATH * add legacy file check * Apply suggestions from code review Co-authored-by: zeripath <[email protected]> * pass env GNUPGHOME to git command, move the existing .gitconfig to new home, make the fix for 1.17rc more clear. * set git.HOME_PATH for docker images to default HOME * Revert "set git.HOME_PATH for docker images to default HOME" This reverts commit f120101. * force Gitea to use a stable GNUPGHOME directory * extra check to ensure only process dir or symlink for legacy files * refactor variable name * The legacy dir check (for 1.17-rc1) could be removed with 1.18 release, since users should have upgraded from 1.17-rc to 1.17-stable * Update modules/git/git.go Co-authored-by: Steven Kriegler <[email protected]> * remove initFixGitHome117rc * Update git.go * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-authored-by: zeripath <[email protected]> Co-authored-by: 6543 <[email protected]> Co-authored-by: Steven Kriegler <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
1 parent 264f02d commit 3b81e40

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

modules/git/git.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020

2121
"code.gitea.io/gitea/modules/log"
2222
"code.gitea.io/gitea/modules/setting"
23-
2423
"github.com/hashicorp/go-version"
2524
)
2625

0 commit comments

Comments
 (0)