From: Ilari Liusvaara <ilari.liusvaara@elisanet•fi>
To: git@vger•kernel.org
Subject: [BUG] git archive formats and dashdash
Date: Thu, 10 Dec 2009 23:26:36 +0200 [thread overview]
Message-ID: <20091210212636.GA27722@Knoppix> (raw)
--format option of git archive stops working if -- is used:
Shell session:
----------------
$ git archive -o test3.zip --format=zip master -- exec_cmd.c
$ file test3.zip
test3.zip: POSIX tar archive
# Eh...
$ git archive -o test4.zip --format=zip master exec_cmd.c
$ file test4.zip
test4.zip: Zip archive data, at least v1.0 to extract
# That worked.
----------------
The bug seems to be in that archive appends the --format
option to its arguments, not taking into account that there
may be -- before that point, disabling option interpretation.
Git version 1.6.6-rc2
-Ilari
next reply other threads:[~2009-12-10 21:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-10 21:26 Ilari Liusvaara [this message]
2009-12-10 22:05 ` [BUG] git archive formats and dashdash Junio C Hamano
2009-12-10 22:22 ` Miklos Vajna
2009-12-10 22:42 ` Junio C Hamano
2009-12-10 23:27 ` [PATCH] Fix archive format with -- on the command line Junio C Hamano
2009-12-10 23:31 ` Junio C Hamano
2009-12-12 15:00 ` René Scharfe
2009-12-30 3:13 ` Nanako Shiraishi
2009-12-30 8:11 ` Junio C Hamano
2009-12-10 22:25 ` [BUG] git archive formats and dashdash Ilari Liusvaara
2009-12-10 22:20 ` [PATCH] builtin-archive: insert --format before double dash if necessary Miklos Vajna
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=20091210212636.GA27722@Knoppix \
--to=ilari.liusvaara@elisanet$(echo .)fi \
--cc=git@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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