stianh / gradle-release-plugin

Gradle plugin for automated release management.
54 stars 14 forks source link

Wrong branch is chosen when 2 branches are pointing to the same commit #23

Closed stigkj closed 12 years ago

stigkj commented 12 years ago

When trying to release from a checked out branch which is pointing to the same commit as another branch, there is a possibility that the name of the other branch is used.

This is because git-name-rev is used for finding current branch, but it does not handle this case correctly all the time. Use git-symbolic-ref instead.