Explorar el Código

Use rebar_string:trim/1 for OTP 19 compatibility

pull/2447/head
Jesper Eskilson hace 4 años
padre
commit
38aec3fb9d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      src/rebar_git_resource.erl

+ 2
- 2
src/rebar_git_resource.erl Ver fichero

@ -310,7 +310,7 @@ collect_default_refcount(Dir) ->
[{use_stdout, false},
{cd, Dir},
{debug_abort_on_error, AbortMsg2}]),
{ok, list_to_integer(string:trim(PatchLines))};
{ok, list_to_integer(rebar_string:trim(PatchLines))};
_ ->
get_patch_count(Dir, Tag)
end,
@ -339,7 +339,7 @@ get_patch_count(Dir, RawRef) ->
[{use_stdout, false},
{cd, Dir},
{debug_abort_on_error, AbortMsg}]),
{ok, list_to_integer(string:trim(PatchLines))}.
{ok, list_to_integer(rebar_string:trim(PatchLines))}.
parse_tags(Dir) ->

Cargando…
Cancelar
Guardar