'Create multiple merge requests from Command Line

Is it possible somehow to create multiple GitLab merge requests from current_branch to another 4 branches with command line? Right now it works fine only for branch_1, because I have commit. After that commit is pushed to branch1, merge request created and next branches has no commits to be pushed and push failed.

#!/usr/bin/env bash
set -e

for BRANCH in branch1 branch2 branch3 branch4
do
  git push -o merge_request.create -o merge_request.target=$BRANCH -o merge_request.remove_source_branch
done


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source