diff options
author | Juan Facorro <juan.facorro@klarna.com> | 2017-11-29 17:42:50 +0100 |
---|---|---|
committer | Juan Facorro <juan.facorro@klarna.com> | 2017-11-29 17:58:47 +0100 |
commit | 5fe44046f74d6a78af72b88a077d4d99cd05a9bd (patch) | |
tree | 9377b649e165cdfd03d7a5d7cbca3c0f71261f3d | |
parent | 66880e7a0653828395565d77798aed09ca142e83 (diff) |
[#1675] Disable color in git log command
-rw-r--r-- | src/rebar_git_resource.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_git_resource.erl b/src/rebar_git_resource.erl index ea77b89..3aa875f 100644 --- a/src/rebar_git_resource.erl +++ b/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"}; |