Ver a proveniência

git vsn from tag both strip 'v' prefix

pull/1654/head
Tristan Sloughter há 7 anos
ascendente
cometimento
b383dcc1a9
1 ficheiros alterados com 3 adições e 0 eliminações
  1. +3
    -0
      src/rebar_git_resource.erl

+ 3
- 0
src/rebar_git_resource.erl Ver ficheiro

@ -273,6 +273,9 @@ parse_tags(Dir) ->
[{use_stdout, false}, return_on_error, {cd, Dir}]) of [{use_stdout, false}, return_on_error, {cd, Dir}]) of
{error, _} -> {error, _} ->
{undefined, "0.0.0"}; {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} -> {ok, LatestVsn} ->
{undefined, string:strip(LatestVsn, both, $\n)} {undefined, string:strip(LatestVsn, both, $\n)}
end end

Carregando…
Cancelar
Guardar