test: use merge-base for commit title checking

Otherwise, will compare branch with forked master against upstream master.
This commit is contained in:
Anthony Romano
2016-06-29 09:28:53 -07:00
parent 81322b498e
commit dc218fb41d

2
test
View File

@@ -148,7 +148,7 @@ function fmt_tests {
fi
echo "Checking commit titles..."
git log master..HEAD --oneline | while read l; do
git log --oneline `git merge-base HEAD master`...HEAD | while read l; do
commitMsg=`echo "$l" | cut -f2- -d' '`
if [[ "$commitMsg" == Merge* ]]; then
# ignore "Merge pull" commits