Explorar el Código

rebar_git_resource: allow non-single-digit git versions

It is quite normal to have git 2.17.1 on MacOS X.
pull/2227/head
Maxim Fedorov hace 5 años
padre
commit
ddc3ff0bba
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/rebar_git_resource.erl

+ 1
- 1
src/rebar_git_resource.erl Ver fichero

@ -230,7 +230,7 @@ git_vsn() ->
git_vsn_fetch() ->
case rebar_utils:sh("git --version",[]) of
{ok, VsnStr} ->
case re:run(VsnStr, "git version\\h+(\\d)\\.(\\d)\\.(\\d).*", [{capture,[1,2,3],list}, unicode]) of
case re:run(VsnStr, "git version\\h+(\\d+)\\.(\\d+)\\.(\\d+).*", [{capture,[1,2,3],list}, unicode]) of
{match,[Maj,Min,Patch]} ->
{list_to_integer(Maj),
list_to_integer(Min),

Cargando…
Cancelar
Guardar