Fix spacing

This commit is contained in:
Matthias Beyer 2018-01-04 11:24:16 +01:00
parent 2fd6a701ae
commit db33d46608
2 changed files with 1 additions and 17 deletions

View file

@ -34,22 +34,6 @@ do
# TO NOT ONLY WARN BUT ABORT UNCOMMENT THE NEXT LINE
# exit 1
fi
# Check for commits without sign-off
if [ "$remote_sha" = $z40 ]; then
# New branch is pushed, we only want to check commits that are not
# on master.
range="$(git merge-base master "$local_sha")..$local_sha"
fi
while read ref; do
msg=$(git log -n 1 --format=%B "$ref")
if ! grep -q '^Signed-off-by: ' <<<"$msg"; then
echo >&2 "Unsigned commit $ref"
exit 1
fi
done < <(git rev-list "$range")
# The process substitution above is a hack to make sure loop runs in
# the same shell and can actually exit the whole script.
fi
done

View file

@ -12,6 +12,6 @@ then
echo >&2 "All good"
else
echo -en >&2 "${RED}Got $faulty non Signed-off-by commits${NORMAL}"
echo -e >&2 "${RED}between $1 and $2${NORMAL}"
echo -e >&2 "${RED} between $1 and $2${NORMAL}"
fi