I tried to get ancestor of my branch with git merge-base
command on merged branch.
When I try git merge-base develop branch1
it shows sha YYY instead of XXX
* `develop`
|
* merge branch1 into develop
|\
| * `branch1` <- HEAD sha YYY
|/
* sha XXX
Everything works fine when I fire the same command on not merged branch (diagram bellow)
* `develop`
|
|
| * `branch1` <- HEAD sha YYY
|/
* sha XXX
The only way I get this commit id is by
git log --oneline --boundary develop...branch1
It shows me a list of commits but I need only one.