# [PATCH]Fix cg-export to not specify excess argument to compressor

1 messages from 2005-12-26 to 2005-12-26. Participants: Alexey Nezhdanov.
Thread: https://gitlist.dev/t/2930

## Alexey Nezhdanov, 2005-12-26 14:20

Subject: [PATCH]Fix cg-export to not specify excess argument to compressor
Message-ID: <200512261720.10136.snake@penza-gsm.ru>
URL: https://gitlist.dev/e/200512261720.10136.snake%40penza-gsm.ru

```
When gzip or bzip2 provided with empty string as argument
they failing to use stdin as the source of data.

-- 
Respectfully
Alexey Nezhdanov


--- /home/snake/scm/cogito/cg-export	2005-12-26 17:14:49.000000000 +0300
+++ cg-export	2005-12-26 17:16:17.000000000 +0300
@@ -44,10 +44,10 @@
 		base="${base##*/}"
 		case "$ext" in
 		.tar.gz|.tgz)
-			git-tar-tree "$id" "$base" | gzip -c9 "$tar" >"$dest"
+			git-tar-tree "$id" "$base" | gzip -c9 >"$dest"
 			;;
 		.tar.bz2)
-			git-tar-tree "$id" "$base" | bzip2 -c "$tar" >"$dest"
+			git-tar-tree "$id" "$base" | bzip2 -c >"$dest"
 			;;
 		.tar)
 			git-tar-tree "$id" "$base" >"$dest"

```
