We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 490330f commit 488658dCopy full SHA for 488658d
modules/git/git.go
@@ -251,14 +251,12 @@ func syncGitConfig() (err error) {
251
}
252
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
- }
+ //
+ // Disable the security check because Gitea runs the git CLI from within the
+ // repository. See https://github.com/go-gitea/gitea/issues/19455 for the full discussion.
+ if err := configAddNonExist("safe.directory", "*"); err != nil {
+ return err
262
263
264
if runtime.GOOS == "windows" {
0 commit comments