Skip to content

Commit

Permalink
sideband: do not use color, just say "remote:"
Browse files Browse the repository at this point in the history
... per suggestion by Andrew.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Aug 3, 2006
1 parent dfa4647 commit 2de196f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fetch-clone.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,13 @@ static pid_t setup_sideband(int sideband, const char *me, int fd[2], int xd[2])
len--;
switch (buf[0] & 0xFF) {
case 3:
safe_write(2, "remote: ", 8);
safe_write(2, buf+1, len);
fprintf(stderr, "\n");
safe_write(2, "\n", 1);
exit(1);
case 2:
/* color sideband */
safe_write(2, "\033[44;37;1m", 10);
safe_write(2, "remote: ", 8);
safe_write(2, buf+1, len);
safe_write(2, "\033[m", 3);
continue;
case 1:
safe_write(fd[1], buf+1, len);
Expand Down

0 comments on commit 2de196f

Please sign in to comment.