Ignore trivial errors when updating push data (#33864)
Fix #23213 (cherry picked from commit cb6b33c9cd1efa619351a458e2bce8ad1e6cd623)
This commit is contained in:
parent
f8dfb5905f
commit
0dfa5d0c7d
2 changed files with 20 additions and 18 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue