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"