Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion bin/autoaggregate
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import os
import sys
from dotenv import load_dotenv
from multiprocessing import cpu_count
from subprocess import check_call
from subprocess import check_call, check_output

import yaml
from waftlib import (
Expand Down Expand Up @@ -46,6 +46,13 @@ def aggregate(config):
old_umask = os.umask(int(UMASK))
cmd = [
"gitaggregate",
"-h",
]
has_no_color_switch = b"no-color" in check_output(cmd)
cmd = ["gitaggregate"]
if has_no_color_switch:
cmd.append("--no-color")
cmd += [
"--expand-env",
"--config",
config,
Expand Down