summaryrefslogtreecommitdiff
path: root/src/rebar_git_resource.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2016-04-04 10:13:35 -0500
committerTristan Sloughter <t@crashfast.com>2016-04-04 10:13:35 -0500
commit0be32c78f0f8849cf601afae9f9e14f9cf1de12c (patch)
tree298b32d561051b07b6246a7ac5d275aed1481e6f /src/rebar_git_resource.erl
parentd07f2c06641862c8515e65c6a56942337d3128b1 (diff)
parent581a01c405842b7508878a6ce36aa8a25bd0e88d (diff)
Merge pull request #1138 from egobrain/patch-2
Fixed git version bug
Diffstat (limited to 'src/rebar_git_resource.erl')
-rw-r--r--src/rebar_git_resource.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_git_resource.erl b/src/rebar_git_resource.erl
index 876d047..5a6a5ef 100644
--- a/src/rebar_git_resource.erl
+++ b/src/rebar_git_resource.erl
@@ -201,7 +201,7 @@ 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)(HEAD[^,]*,\\s)tag:\\s(v?([^,\\)]+))", [{capture, [3, 4], list}]) of
{match,[Tag, Vsn]} ->
{Tag, Vsn};
nomatch ->