summaryrefslogtreecommitdiffstats
path: root/git_command.py
diff options
context:
space:
mode:
Diffstat (limited to 'git_command.py')
-rw-r--r--git_command.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/git_command.py b/git_command.py
index 1ec7c3ed..55216b1c 100644
--- a/git_command.py
+++ b/git_command.py
@@ -313,12 +313,15 @@ class GitCommand:
313 cwd = None 313 cwd = None
314 command_name = cmdv[0] 314 command_name = cmdv[0]
315 command.append(command_name) 315 command.append(command_name)
316 # Need to use the --progress flag for fetch/clone so output will be 316
317 # displayed as by default git only does progress output if stderr is a 317 if command_name in ("fetch", "clone"):
318 # TTY. 318 env["GIT_TERMINAL_PROMPT"] = "0"
319 if sys.stderr.isatty() and command_name in ("fetch", "clone"): 319 # Need to use the --progress flag for fetch/clone so output will be
320 if "--progress" not in cmdv and "--quiet" not in cmdv: 320 # displayed as by default git only does progress output if stderr is
321 command.append("--progress") 321 # a TTY.
322 if sys.stderr.isatty():
323 if "--progress" not in cmdv and "--quiet" not in cmdv:
324 command.append("--progress")
322 command.extend(cmdv[1:]) 325 command.extend(cmdv[1:])
323 326
324 event_log = ( 327 event_log = (