summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-09-19 13:12:00 -0500
committerTristan Sloughter <t@crashfast.com>2015-09-19 13:12:00 -0500
commit85ce3628c14f5268f22bd2d766447be87c97c7f0 (patch)
tree15c00b680c59057bb0cabf50e6f71c8b6a00cf3c
parent0c3b2fd14cedab0ae1fb7550c7c6f0e8b33d53da (diff)
make v prefix in git tag version optional
-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 2fc1ba9..5a24d1a 100644
--- a/src/rebar_git_resource.erl
+++ b/src/rebar_git_resource.erl
@@ -194,7 +194,7 @@ parse_tags(Dir) ->
{error, _} ->
{undefined, "0.0.0"};
{ok, Line} ->
- case re:run(Line, "(\\(|\\s)tag:\\s(v([^,\\)]+))", [{capture, [2, 3], list}]) of
+ case re:run(Line, "(\\(|\\s)tag:\\s(v?([^,\\)]+))", [{capture, [2, 3], list}]) of
{match,[Tag, Vsn]} ->
{Tag, Vsn};
nomatch ->