Commit 0692b589 authored by Robert Lyon's avatar Robert Lyon

PHP Notice: Undefined offset: 3 error

When the first patch being checked is already merged.

We need to reject out before checking gerrit as we don't have a commit
id to check against
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 62b76f89
......@@ -22,6 +22,10 @@ echo ""
# that exists when the patch was made.
HEAD=`git rev-parse HEAD`
the_list=`git log --pretty=format:'%H' origin/$GERRIT_BRANCH..$HEAD`
if [ -z "$the_lists" ]; then
echo "The patch has already been merged"
exit 1;
fi
firstcommit=1
while IFS= read -r line
do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment