Skip to content

Commit

Permalink
merge forward script: ensure different args (#775)
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters authored Jul 28, 2022
1 parent 19b5209 commit 167a533
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source-repo-scripts/merge_forward_pull_request.bash
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ TO_BRANCH=${2}
if [[ $# -ne 2 ]]; then
echo "./merge_forward_pull_request.bash <from_branch> <to_branch>"
exit 1
elif [[ "$FROM_BRANCH" == "$TO_BRANCH" ]]; then
echo "Arguments ${FROM_BRANCH} and ${TO_BRANCH} must not be identical"
exit 1
fi

set -e
Expand Down

0 comments on commit 167a533

Please sign in to comment.