public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* [BUG] git archive formats and dashdash
@ 2009-12-10 21:26 Ilari Liusvaara
  2009-12-10 22:05 ` Junio C Hamano
  2009-12-10 22:20 ` [PATCH] builtin-archive: insert --format before double dash if necessary Miklos Vajna
  0 siblings, 2 replies; 11+ messages in thread
From: Ilari Liusvaara @ 2009-12-10 21:26 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-12-30  8:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-10 21:26 [BUG] git archive formats and dashdash Ilari Liusvaara
2009-12-10 22:05 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox