From b383dcc1a965a568c8301d3afd73d28a4089823a Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Thu, 2 Nov 2017 11:40:19 -0700 Subject: git vsn from tag both strip 'v' prefix --- src/rebar_git_resource.erl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rebar_git_resource.erl b/src/rebar_git_resource.erl index c63d10d..2855dd0 100644 --- a/src/rebar_git_resource.erl +++ b/src/rebar_git_resource.erl @@ -273,6 +273,9 @@ parse_tags(Dir) -> [{use_stdout, false}, return_on_error, {cd, Dir}]) of {error, _} -> {undefined, "0.0.0"}; + %% strip the v prefix if it exists like is done in the above match + {ok, [$v | LatestVsn]} -> + {undefined, string:strip(LatestVsn, both, $\n)}; {ok, LatestVsn} -> {undefined, string:strip(LatestVsn, both, $\n)} end -- cgit v1.1