diff options
| author | Lubomir Rintel <lkundrak@v3.sk> | 2018-09-24 13:54:46 +0200 |
|---|---|---|
| committer | Lubomir Rintel <lkundrak@v3.sk> | 2018-10-07 15:46:02 +0200 |
| commit | 0d3c6072f5b99d55029dcd7b0f156709c6b2e7df (patch) | |
| tree | f8527e230d931c4b62795c601db9b8461b4c85c8 /contrib | |
| parent | 587f00669012b86edf5fc56723be051b7f5572d0 (diff) | |
| download | NetworkManager-0d3c6072f5b99d55029dcd7b0f156709c6b2e7df.tar.gz | |
contrib/checkpatch: remove the first character off a diff
Otherwise the leading whitespace checks won't work on patches.
Diffstat (limited to 'contrib')
| -rwxr-xr-x | contrib/scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl index 289dad82e9..d6b3c4451a 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -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; |
