1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-14 06:27:19 +00:00

Ignore trivial errors when updating push data (#33864) (#33887)

Backport #33864 by wxiaoguang

Fix #23213

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Giteabot
2025-03-14 23:37:00 +08:00
committed by GitHub
parent 9054a6670c
commit be94f7bc07
2 changed files with 20 additions and 18 deletions

View File

@ -1377,10 +1377,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
}