Преглед на файлове

Merge pull request #1676 from jfacorro/1675.disable.color.git.log

[Closes #1675] Disable color in git log command
pull/1678/head
Fred Hebert преди 7 години
committed by GitHub
родител
ревизия
6492020c4f
No known key found for this signature in database GPG ключ ID: 4AEE18F83AFDEB23
променени са 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"};

Зареждане…
Отказ
Запис