From 252fd596d0116a9ceb26c302ccc25d26c1042729 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 15 Oct 2020 15:43:04 -0700 Subject: Don't complain when a change fixes a complaint. The script was telling me: ``` WARNING: use relative pathname instead of absolute in changelog text \#20: FILE: contrib/cross-build.sh:25: -# /path/to/openocd/contrib/cross-build.sh ``` In the change where I changed that line to not refer to an absolute path. Change-Id: I1a21af5c36d9aeb01d3e819bfe2b06eb00466467 Signed-off-by: Tim Newsome --- tools/scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl index 0a119f1..bdd8408 100755 --- a/tools/scripts/checkpatch.pl +++ b/tools/scripts/checkpatch.pl @@ -1589,7 +1589,7 @@ sub process { } # Check for absolute kernel paths. - if ($tree) { + if ($tree && $line =~ /^[^-]/) { while ($line =~ m{(?:^|\s)(/\S*)}g) { my $file = $1; -- cgit v1.1