Skip to content

Commit

Permalink
Merge pull request torvalds#320 from libos-nuse/fix-checkpath
Browse files Browse the repository at this point in the history
lkl: fix patch style check to be able to run on circleci
  • Loading branch information
thehajime authored Feb 10, 2017
2 parents 4a42464 + 72894fe commit 658cc55
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/lkl/scripts/checkpatch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ else
git fetch --tags $upstream
fi

if [ -z "$lkl" ]; then
git remote add lkl-upstream git@$LKL || true
lkl=`git remote -v | grep $LKL | cut -f1 | head -n1`
fi

if [ -z "$lkl" ]; then
echo "can't find lkl remote, quiting"
exit 1
Expand All @@ -44,6 +49,7 @@ for c in $commits; do
done

if [ -z "$c" ]; then
echo "there are not commits/patches to check, quiting."
rmdir $tmp
exit 0
fi
Expand Down

0 comments on commit 658cc55

Please sign in to comment.