mirror of
https://github.com/go-gitea/gitea
synced 2025-07-14 06:27:19 +00:00
Backport #33864 by wxiaoguang Fix #23213 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@ -1377,10 +1377,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