When using git flow to merge a release branch back into a support branch it generates a commit message
Merge tag '1.1.0' into support/1.0
which is not recognized by gitversion as a valid commit message. When I ammend the commit to change "tag" to "branch" it works.
Why not use
and count the number of parents to detect a merge commit. If there are more than one it is a merge commit. That would be more robust
C:\Users\egger\Workspace\GitVersionTest [support/1.0]> git cat-file -p 564cf5140fa30e85b07ba2f61dac70065eab93ca
tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
parent 7505a41a091f33e859c2311f5d76e7309a0240ff
parent fe420d45e9c69e68cf19014d7e1b5c112716091b
author Johannes Egger <eggerjohansi@gmail.com> 1425909409 +0100
committer Johannes Egger <eggerjohansi@gmail.com> 1425909409 +0100
Merge tag '1.1.0' into support/1.0