Skip to content

Commit

Permalink
test: Fix awk usage for printing refs
Browse files Browse the repository at this point in the history
This should print more fields than just 3rd one if they're present.
  • Loading branch information
viq authored and viq committed May 24, 2021
1 parent 3e4652d commit 19f4047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-commit-message.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ then
ref=${GITHUB_BASE_REF}
head=${GITHUB_SHA}
else
ref=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
ref=$(echo $GITHUB_REF | cut -d/ -f3-)
head=""
fi
commits=$(git log --no-merges --format=%H origin/${ref}..${head})
Expand Down

0 comments on commit 19f4047

Please sign in to comment.