Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

gitflow wrongly merge master back to develop while finishing hotfix or release

John Britto
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2018

I'm facing problem while finishing hotfix or release branch. Gitflow merges the horfix or release to master and not to develop. Instead of merging hotfix or release back to develop, master branch is back merged to develop

Source tree version: 2.8.4

Embedded git: 2.15.1

sh.exe C:\Users\john\AppData\Local\Atlassian\SourceTree\gitflow_local\gitflow\git-flow hotfix start test2
sh.exe C:\Users\john\AppData\Local\Atlassian\SourceTree\gitflow_local\gitflow\git-flow hotfix finish -p -k -n test2

sh.exe C:\Users\john\AppData\Local\Atlassian\SourceTree\gitflow_local\gitflow\git-flow hotfix finish -p -k -n test2
Your branch is up to date with 'origin/master'.
Switched to branch 'master'
Merge made by the 'recursive' strategy.
developers.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Your branch is up to date with 'origin/develop'.
Switched to branch 'develop'
Merge made by the 'recursive' strategy.
developers.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

To https://github.com/johnges/tutorial.git
073a968..7ed2963 develop -> develop

To https://github.com/johnges/tutorial.git
88e9f15..73ea02f master -> master


Summary of actions:
- Hotfix branch 'hotfix/test2' has been merged into 'master'
- Master branch 'master' has been back-merged into 'develop'

- Hotfix branch 'hotfix/test2' is still locally available; it is still remotely available on 'origin'
- 'develop', 'master' and tags have been pushed to 'origin'
- You are now on branch 'develop'

Completed successfully.

1 answer

0 votes
John Britto
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2018

I found that my source tree has been updated the gitflow version from https://github.com/petervanderdoes/gitflow-avh

and that is the reason I got the follwong wrong commit message

Master branch 'master' has been back-merged into 'develop'

bs-thomas August 13, 2018

Hey @John Britto, I'm having this same problem, and was wondering what you meant.

 

Where in the source does it tell us the gitflow version?

Also, is this supposed to be the expected behavior for the newest gitflow version?  Or is that a bug?

bs-thomas August 21, 2018
bs-thomas August 21, 2018
bs-thomas August 21, 2018

@John Britto Okay, this explains all.  https://github.com/nvie/gitflow/issues/49

This is the expected behavior now, because of git-describe.

Like John Britto likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events