mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-02-13 20:09:48 +02:00
Ignore trivial errors when updating push data (#33864)
Fix #23213 (cherry picked from commit cb6b33c9cd1efa619351a458e2bce8ad1e6cd623)
This commit is contained in:
committed by
Michael Jerger
parent
f8dfb5905f
commit
0dfa5d0c7d
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user