Procházet zdrojové kódy

Merge pull request #1654 from tsloughter/strip-v

git vsn from tag both strip 'v' prefix
pull/1660/head
Fred Hebert před 7 roky
odevzdal GitHub
rodič
revize
557623ba89
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. +3
    -0
      src/rebar_git_resource.erl

+ 3
- 0
src/rebar_git_resource.erl Zobrazit soubor

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

Načítá se…
Zrušit
Uložit