mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 08:18:03 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ if ($is_patch) {
|
||||||
new_file ($2);
|
new_file ($2);
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
/^([ \+])(.*)/ or next;
|
s/^([ \+])(.*)/$2/ or next;
|
||||||
$line_no++;
|
$line_no++;
|
||||||
$check_line = $1 eq '+';
|
$check_line = $1 eq '+';
|
||||||
$line = $2;
|
$line = $2;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue