소스 검색

[#1675] Disable color in git log command

pull/1676/head
Juan Facorro 7 년 전
부모
커밋
5fe44046f7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/rebar_git_resource.erl

+ 1
- 1
src/rebar_git_resource.erl 파일 보기

@ -261,7 +261,7 @@ get_patch_count(Dir, RawRef) ->
parse_tags(Dir) ->
%% Don't abort on error, we want the bad return to be turned into 0.0.0
case rebar_utils:sh("git log --oneline --no-walk --tags --decorate",
case rebar_utils:sh("git -c color.ui=false log --oneline --no-walk --tags --decorate",
[{use_stdout, false}, return_on_error, {cd, Dir}]) of
{error, _} ->
{undefined, "0.0.0"};

불러오는 중...
취소
저장