We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f2f87a commit cc3ef83Copy full SHA for cc3ef83
modules/git/git.go
@@ -197,7 +197,7 @@ func InitOnceWithSync(ctx context.Context) (err error) {
197
198
// syncGitConfig only modifies gitconfig, won't change global variables (otherwise there will be data-race problem)
199
func syncGitConfig() (err error) {
200
- if err = os.MkdirAll(setting.RepoRootPath, os.ModePerm); err != nil {
+ if err = os.MkdirAll(HomeDir(), os.ModePerm); err != nil {
201
return fmt.Errorf("unable to create directory %s, err: %w", setting.RepoRootPath, err)
202
}
203
0 commit comments