Repository: couchdb-rebar Updated Branches: refs/heads/hack/2.0 [created] a61e8f79c
DIRTY HACK to get 2.0 builds from release tarballs working. FIXME Project: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/commit/a61e8f79 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/tree/a61e8f79 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/diff/a61e8f79 Branch: refs/heads/hack/2.0 Commit: a61e8f79c70488a3fa8c663272777085890a39f1 Parents: 5dea85d Author: Jan Lehnardt <[email protected]> Authored: Thu Dec 24 14:06:34 2015 +0100 Committer: Jan Lehnardt <[email protected]> Committed: Thu Dec 24 14:06:34 2015 +0100 ---------------------------------------------------------------------- src/rebar_utils.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-rebar/blob/a61e8f79/src/rebar_utils.erl ---------------------------------------------------------------------- diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 9681756..39a8988 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -623,7 +623,9 @@ vcs_vsn_1(Vcs, Dir) -> end end. -vcs_vsn_cmd(git) -> "git describe --always --tags"; +% dirty dirty hack, because CouchDB 2.0 release tarballs donât include .git dirs +% any more and I donât understand rebar well enough to fix this any other way. +vcs_vsn_cmd(git) -> {plain, "2.0.0-alpha"}; % "git describe --always --tags"; vcs_vsn_cmd(p4) -> "echo #head"; vcs_vsn_cmd(hg) -> "hg identify -i"; vcs_vsn_cmd(bzr) -> "bzr revno";
