diff --git a/src/rebar_app_utils.erl b/src/rebar_app_utils.erl index 285bb5e..7cdf00c 100644 --- a/src/rebar_app_utils.erl +++ b/src/rebar_app_utils.erl @@ -163,7 +163,7 @@ vcs_vsn(Vcs, Dir) -> end end. -vcs_vsn_cmd(git) -> "git describe --always --tags"; +vcs_vsn_cmd(git) -> "git describe --always --tags `git log -n 1 --pretty=format:%h .`"; vcs_vsn_cmd(hg) -> "hg identify -i"; vcs_vsn_cmd(bzr) -> "bzr revno"; vcs_vsn_cmd(svn) -> "svnversion";