{"thread":{"id":"2930","subject":"[PATCH]Fix cg-export to not specify excess argument to compressor","startedAt":"2005-12-26T14:20:09Z","lastAt":"2005-12-26T14:20:09Z","messageCount":1,"participants":["Alexey Nezhdanov"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"14041","messageId":"200512261720.10136.snake@penza-gsm.ru","threadId":"2930","inReplyTo":null,"subject":"[PATCH]Fix cg-export to not specify excess argument to compressor","fromName":"Alexey Nezhdanov","fromEmail":"snake@penza-gsm.ru","sentAt":"2005-12-26T14:20:09Z","receivedAt":"2005-12-26T14:20:09Z","isPatch":true,"sender":{"key":"snake@penza-gsm.ru","avatar":null},"body":"When gzip or bzip2 provided with empty string as argument\nthey failing to use stdin as the source of data.\n\n-- \nRespectfully\nAlexey Nezhdanov\n\n\n--- /home/snake/scm/cogito/cg-export\t2005-12-26 17:14:49.000000000 +0300\n+++ cg-export\t2005-12-26 17:16:17.000000000 +0300\n@@ -44,10 +44,10 @@\n \t\tbase=\"${base##*/}\"\n \t\tcase \"$ext\" in\n \t\t.tar.gz|.tgz)\n-\t\t\tgit-tar-tree \"$id\" \"$base\" | gzip -c9 \"$tar\" >\"$dest\"\n+\t\t\tgit-tar-tree \"$id\" \"$base\" | gzip -c9 >\"$dest\"\n \t\t\t;;\n \t\t.tar.bz2)\n-\t\t\tgit-tar-tree \"$id\" \"$base\" | bzip2 -c \"$tar\" >\"$dest\"\n+\t\t\tgit-tar-tree \"$id\" \"$base\" | bzip2 -c >\"$dest\"\n \t\t\t;;\n \t\t.tar)\n \t\t\tgit-tar-tree \"$id\" \"$base\" >\"$dest\"\n"}]}