1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-04 01:27:20 +00:00

Ignore trivial errors when updating push data (#33864)

Fix #23213
This commit is contained in:
wxiaoguang
2025-03-14 16:36:39 +08:00
committed by GitHub
parent b094f9b75d
commit cb6b33c9cd
2 changed files with 20 additions and 18 deletions

View File

@ -1443,10 +1443,8 @@ func GetWhitespaceFlag(whitespaceBehavior string) git.TrustedCmdArgs {
"ignore-eol": {"--ignore-space-at-eol"},
"show-all": nil,
}
if flag, ok := whitespaceFlags[whitespaceBehavior]; ok {
return flag
}
log.Warn("unknown whitespace behavior: %q, default to 'show-all'", whitespaceBehavior)
return nil
}