Ignore trivial errors when updating push data (#33864)

Fix #23213

(cherry picked from commit cb6b33c9cd1efa619351a458e2bce8ad1e6cd623)
This commit is contained in:
wxiaoguang 2025-03-14 16:36:39 +08:00 committed by Michael Jerger
parent f8dfb5905f
commit 0dfa5d0c7d
2 changed files with 20 additions and 18 deletions

View file

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