basho/rebar — Issue #186: Incorrect replacement for `git` application version
Author: djui
Created: 2012-02-15 16:02:41+00:00
State: open

To replace an Erlang application version using the `git` atom, in `rebar_app_utils.erl` the command `git describe --always --tags 'git log -n 1 --pretty=format:%h .'` is executed. But if the latest commit is a merge, no files in the `GIT_DIR` are actually touched, so even when having a tag on that merge, the ` .` in the end of the git describe committish will create an ad-hoc tag name, e.g. `0.1.4-3-g90203bf` instead of `0.1.5`.