Skip to content

Commit

Permalink
Merge pull request torvalds#256 from lkl/fix-checkpatch
Browse files Browse the repository at this point in the history
lkl tools: fix checkpath.sh error when running directly on top of the…
  • Loading branch information
tavip authored Nov 1, 2016
2 parents 9b3d507 + fc2a825 commit 3e18acf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/lkl/scripts/checkpatch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ for c in `git log --no-merges --pretty=format:%h HEAD ^$origin_master ^$tag`; do
git format-patch -1 -o $tmp $c
done

if [ -z "$c" ]; then
rmdir $tmp
exit 0
fi

./scripts/checkpatch.pl --ignore FILE_PATH_CHANGES $tmp/*.patch
rm $tmp/*.patch

Expand Down

0 comments on commit 3e18acf

Please sign in to comment.