diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-09-19 13:12:00 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-09-19 13:12:00 -0500 |
commit | 85ce3628c14f5268f22bd2d766447be87c97c7f0 (patch) | |
tree | 15c00b680c59057bb0cabf50e6f71c8b6a00cf3c | |
parent | 0c3b2fd14cedab0ae1fb7550c7c6f0e8b33d53da (diff) |
make v prefix in git tag version optional
-rw-r--r-- | src/rebar_git_resource.erl | 2 |
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 -> |