Ver a proveniência

Merge pull request #1654 from tsloughter/strip-v

git vsn from tag both strip 'v' prefix
pull/1660/head
Fred Hebert há 7 anos
committed by GitHub
ascendente
cometimento
557623ba89
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
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
{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

Carregando…
Cancelar
Guardar