Skip to content

Commit cc3ef83

Browse files
committed
use HomeDir instead of setting.RepoRootPath
1 parent 0f2f87a commit cc3ef83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/git.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func InitOnceWithSync(ctx context.Context) (err error) {
197197

198198
// syncGitConfig only modifies gitconfig, won't change global variables (otherwise there will be data-race problem)
199199
func syncGitConfig() (err error) {
200-
if err = os.MkdirAll(setting.RepoRootPath, os.ModePerm); err != nil {
200+
if err = os.MkdirAll(HomeDir(), os.ModePerm); err != nil {
201201
return fmt.Errorf("unable to create directory %s, err: %w", setting.RepoRootPath, err)
202202
}
203203

0 commit comments

Comments
 (0)