Ignore trivial errors when updating push data (#33864)

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

No files matched your search

-2
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
}