git-archive not working correctly ?

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

git-archive not working correctly ?

From: Niki Guldbrand <hidden>
Date: 2016-06-15 22:43:35

Hi.

I have been playing with git-archive for and hour or so, but can't get
it to pass "extra" options to tar as it's documented that it should, or
am i reading the docs wrong ?

git-archive --format=<fmt> [--list] [--prefix=<prefix>/] [<extra>]
[--remote=<repo>] <tree-ish> [path…]

<extra>
        This can be any options that the archiver backend understand.
        See next section.
        
I want to git tar the "--exclude=option", but i can't get it through.
Is this option only valid for the zip format with the options "-0" and
"-9" ?


Kind regards

Niki Guldbrand

Re: git-archive not working correctly ?

From: Frank Lichtenheld <hidden>
Date: 2016-06-15 22:43:35

On Mon, Sep 17, 2007 at 12:50:26AM +0200, Niki Guldbrand wrote:
I have been playing with git-archive for and hour or so, but can't get
it to pass "extra" options to tar as it's documented that it should, or
am i reading the docs wrong ?

git-archive --format=<fmt> [--list] [--prefix=<prefix>/] [<extra>]
[--remote=<repo>] <tree-ish> [path…]

<extra>
        This can be any options that the archiver backend understand.
        See next section.
        
I want to git tar the "--exclude=option", but i can't get it through.
Is this option only valid for the zip format with the options "-0" and
"-9" ?
Yes. The tar backend currently doesn't support any extra options.

Gruesse,
-- 
Frank Lichtenheld [off-list ref]
www: http://www.djpig.de/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help