History

Ignore trivial errors when updating push data (#33864)

Fix #23213 (cherry picked from commit cb6b33c9cd1efa619351a458e2bce8ad1e6cd623)

wxiaoguang committed 1 year ago

Commit 0dfa5d01 parent f8dfb592 files · +20 −18Browse files

Showing the changes to services/gitdiff/gitdiff.go (1 of 2 files). Show all

Unified · Split

services/gitdiff/gitdiff.go+0−2
@@ -1381,10 +1381,8 @@ func GetWhitespaceFlag(whitespaceBehavior string) git.TrustedCmdArgs { · 1380 unmodified lines
13811381 "ignore-eol": {"--ignore-space-at-eol"},
13821382 "show-all": nil,
13831383 }
1384−
13851384 if flag, ok := whitespaceFlags[whitespaceBehavior]; ok {
13861385 return flag
13871386 }
1388− log.Warn("unknown whitespace behavior: %q, default to 'show-all'", whitespaceBehavior)
13891387 return nil
13901388 }