Skip to content

Commit

Permalink
test: auto detect branch when finding merge base
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyih committed Mar 31, 2020
1 parent 89b10cf commit 62f0248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 62f0248

Please sign in to comment.