From 62f0248707ca22a795a0a376a73d8368b73a1956 Mon Sep 17 00:00:00 2001 From: jingyih Date: Tue, 31 Mar 2020 09:06:35 -0700 Subject: [PATCH] test: auto detect branch when finding merge base --- test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test b/test index 6347b1420628..8afa43c57352 100755 --- a/test +++ b/test @@ -581,7 +581,7 @@ function receiver_name_pass { } function commit_title_pass { - git log --oneline "$(git merge-base HEAD master)"...HEAD | while read -r l; do + git log --oneline "$(git merge-base HEAD $(git rev-parse --abbrev-ref --symbolic-full-name "@{u}"))"...HEAD | while read -r l; do commitMsg=$(echo "$l" | cut -f2- -d' ') if [[ "$commitMsg" == Merge* ]]; then # ignore "Merge pull" commits