Commit 3b9fb5855a164a4eddcd66f327336c34f8948869

Stefan Sperling 2020-03-18T16:11:31

hide an fprintf inside if (chattygit)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/libexec/got-fetch-pack/got-fetch-pack.c b/libexec/got-fetch-pack/got-fetch-pack.c
index d6afe7d..312015a 100644
--- a/libexec/got-fetch-pack/got-fetch-pack.c
+++ b/libexec/got-fetch-pack/got-fetch-pack.c
@@ -568,7 +568,8 @@ fetch_pack(int fd, int packfd, struct got_object_id *packid,
 			goto done;
 	}
 	if (!req) {
-		fprintf(stderr, "up to date\n");
+		if (chattygit)
+			fprintf(stderr, "up to date\n");
 		err = flushpkt(fd);
 		if (err)
 			goto done;