diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-09-19 12:54:58 -0500 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-09-19 12:54:58 -0500 |
commit | 722d264c9ba6cf72f33d0277843293031055e21a (patch) | |
tree | b7a02e2a57a66efd5f3ffbac38f16abd953e883e | |
parent | 791b5670eeb92956d507e169ad056b6e891ec5c2 (diff) |
Revert "Improved git versioning"
-rw-r--r-- | src/rebar_git_resource.erl | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/rebar_git_resource.erl b/src/rebar_git_resource.erl index 6405e46..2fc1ba9 100644 --- a/src/rebar_git_resource.erl +++ b/src/rebar_git_resource.erl @@ -194,16 +194,10 @@ parse_tags(Dir) -> {error, _} -> {undefined, "0.0.0"}; {ok, Line} -> - case re:run(Line, "(\\(|\\s)(HEAD,\\s)tag:\\s(v?([^,\\)]+))", [{capture, [3, 4], list}]) of + case re:run(Line, "(\\(|\\s)tag:\\s(v([^,\\)]+))", [{capture, [2, 3], list}]) of {match,[Tag, Vsn]} -> {Tag, Vsn}; nomatch -> - case rebar_utils:sh("git describe --tags", - [{use_stdout, false}, return_on_error, {cd, Dir}]) of - {error, _} -> - {undefined, "0.0.0"}; - {ok, LatestVsn} -> - {undefined, string:strip(LatestVsn, both, $\n)} - end + {undefined, "0.0.0"} end end. |