From 5f17aa2c8bc8a5af33794ca6badf5c1c90133dbb 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 6347b142062..2bd1f66f4e7 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