Browse Source

Merge pull request #1654 from tsloughter/strip-v

git vsn from tag both strip 'v' prefix
pull/1660/head
Fred Hebert 7 years ago
committed by GitHub
parent
commit
557623ba89
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/rebar_git_resource.erl

+ 3
- 0
src/rebar_git_resource.erl View File

@ -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

Loading…
Cancel
Save