threads / patch / 2930

patchFix cg-export to not specify excess argument to compressor

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

## tl;dr

One message between Dec 26, 2005 and Dec 26, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Alexey Nezhdanov· Dec 26, 2005, 14:20 UTC · lore

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"

← back to recent threads