Skip to content

Commit 70b259f

Browse files
committed
chore(run) Note subprocess issue with streaming
1 parent b940bd1 commit 70b259f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/libvcs/_internal/run.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,14 @@ def progress_cb(output: t.AnyStr, timestamp: datetime.datetime) -> None:
201201
sys.stdout.flush()
202202

203203
callback = progress_cb
204+
205+
# Note: When git detects that stderr is not a TTY (e.g., when piped),
206+
# it outputs progress with newlines instead of carriage returns.
207+
# This causes each progress update to appear on a new line.
208+
# To get proper single-line progress updates, git would need to be
209+
# connected to a pseudo-TTY, which would require significant changes
210+
# to how subprocess execution is handled.
211+
204212
while code is None:
205213
code = proc.poll()
206214

0 commit comments

Comments
 (0)