File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -251,14 +251,12 @@ func syncGitConfig() (err error) {
251
251
}
252
252
}
253
253
254
- if CheckGitVersionAtLeast ("2.36" ) == nil {
255
- //
256
- // Disable the security check because Gitea runs the git CLI from within the
257
- // repository. See https://github.com/go-gitea/gitea/issues/19455 for the full discussion.
258
- //
259
- if err := checkAndSetConfig ("safe.directory" , "*" , true ); err != nil {
260
- return err
261
- }
254
+ //
255
+ // Disable the security check because Gitea runs the git CLI from within the
256
+ // repository. See https://github.com/go-gitea/gitea/issues/19455 for the full discussion.
257
+ //
258
+ if err := configAddNonExist ("safe.directory" , "*" ); err != nil {
259
+ return err
262
260
}
263
261
264
262
if runtime .GOOS == "windows" {
You can’t perform that action at this time.
0 commit comments