I am writing a Bash script for git-flow automation in Windows.
The issue is: when I call git flow release finish MYRELEASE -m "MESSAGE"
from cmd it runs without asking for inputs (desired behaviour). But when I do the same from Git Bash (MINGW64) it asks for merge messages (launching vim), which I want to avoid.
I tried to set the git-config to git config --global core.mergeoptions --no-edit
in both consoles, but the outcome is the same: Git Bash always asks for mergemessages.
- Why do the consoles behave differently?
- How do I get Git Bash to stop asking for merge messages?
UPDATE:
The output of git flow release finish 1.1.4 -m "v1.1.4" --showcommands
in both consoles is
git checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
git merge --no-ff release/1.1.4
Already up-to-date!
Merge made by the 'recursive' strategy.
git tag -a -m v1.1.4 1.1.4 1.1.4
git checkout develop
Switched to branch 'develop'
Your branch is up-to-date with 'origin/develop'.
git merge --no-ff 1.1.4
Already up-to-date!
Merge made by the 'recursive' strategy.
git branch -d release/1.1.4
Deleted branch release/1.1.4 (was 0a774fe).
Summary of actions:
- Release branch 'release/1.1.4' has been merged into 'master'
- The release was tagged '1.1.4'
- Release tag '1.1.4' has been back-merged into 'develop'
- Release branch 'release/1.1.4' has been locally deleted
- You are now on branch 'develop'