git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
ANAlexey Nezhdanov <snake@penza-gsm.ru>
Date
Dec 26, 2005, 14:20 UTC
Message-ID
<200512261720.10136.snake@penza-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"
Message 1 of 1 in “Fix cg-export to not specify excess argument to compressor”
  1. Fix cg-export to not specify excess argument to compressorAlexey Nezhdanov, Dec 26, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.