Skip to content

Commit 658cc55

Browse files
authored
Merge pull request torvalds#320 from libos-nuse/fix-checkpath
lkl: fix patch style check to be able to run on circleci
2 parents 4a42464 + 72894fe commit 658cc55

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/lkl/scripts/checkpatch.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ else
2525
git fetch --tags $upstream
2626
fi
2727

28+
if [ -z "$lkl" ]; then
29+
git remote add lkl-upstream git@$LKL || true
30+
lkl=`git remote -v | grep $LKL | cut -f1 | head -n1`
31+
fi
32+
2833
if [ -z "$lkl" ]; then
2934
echo "can't find lkl remote, quiting"
3035
exit 1
@@ -44,6 +49,7 @@ for c in $commits; do
4449
done
4550

4651
if [ -z "$c" ]; then
52+
echo "there are not commits/patches to check, quiting."
4753
rmdir $tmp
4854
exit 0
4955
fi

0 commit comments

Comments
 (0)