Git development
 help / color / mirror / Atom feed
From: Alexey Nezhdanov <snake@penza-gsm.ru>
To: Petr Baudis <pasky@suse.cz>
Cc: git@vger.kernel.org
Subject: [PATCH]Fix cg-export to not specify excess argument to compressor
Date: Mon, 26 Dec 2005 17:20:09 +0300	[thread overview]
Message-ID: <200512261720.10136.snake@penza-gsm.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

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

-- 
Respectfully
Alexey Nezhdanov

[-- Attachment #2: cg-export.patch --]
[-- Type: text/x-diff, Size: 494 bytes --]

--- /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"

                 reply	other threads:[~2005-12-26 14:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200512261720.10136.snake@penza-gsm.ru \
    --to=snake@penza-gsm.ru \
    --cc=git@vger.kernel.org \
    --cc=pasky@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox