mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-14 12:05:03 +00:00
contrib/checkpatch: remove the first character off a diff
Otherwise the leading whitespace checks won't work on patches.
This commit is contained in:
parent
587f006690
commit
0d3c6072f5
|
@ -93,7 +93,7 @@ if ($is_patch) {
|
|||
new_file ($2);
|
||||
next;
|
||||
}
|
||||
/^([ \+])(.*)/ or next;
|
||||
s/^([ \+])(.*)/$2/ or next;
|
||||
$line_no++;
|
||||
$check_line = $1 eq '+';
|
||||
$line = $2;
|
||||
|
|
Loading…
Reference in a new issue