mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: use merge-base for commit title checking
Otherwise, will compare branch with forked master against upstream master.
This commit is contained in:
2
test
2
test
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user