瀏覽代碼

Use rebar_string:trim/1 for OTP 19 compatibility

pull/2447/head
Jesper Eskilson 4 年之前
父節點
當前提交
38aec3fb9d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/rebar_git_resource.erl

+ 2
- 2
src/rebar_git_resource.erl 查看文件

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

Loading…
取消
儲存