From: Ron Yorston <rmy@frippery.org>
To: git@vger.kernel.org
Subject: Bug: git-archive: --add-virtual-file doesn't seem to respect --prefix
Date: Thu, 15 Feb 2024 06:07:31 +0000 [thread overview]
Message-ID: <65cdaa23.MHIIVADqwryAD0ON%rmy@frippery.org> (raw)
The man page for git-archive has similar language regarding the
--add-file and --add-virtual-file options:
The path of the file in the archive is built by concatenating the
value of the last --prefix option (if any) before...
However this doesn't seem to be true for --add-virtual-file. In any
git repository:
$ touch real_added_file
$ git archive --format=tar --prefix=prefix/ --add-file=real_added_file \
--add-virtual-file=virtual_added_file: HEAD | \
tar tvf - | grep added_file
-rw-rw-r-- root/root 0 2017-02-22 17:18 prefix/real_added_file
-rw-rw-r-- root/root 0 2017-02-22 17:18 virtual_added_file
I expected to see 'prefix/virtual_added_file'.
Ron
next reply other threads:[~2024-02-15 6:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-15 6:07 Ron Yorston [this message]
2024-02-15 11:48 ` AW: git-archive: --add-virtual-file doesn't seem to respect --prefix stefan.naewe
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=65cdaa23.MHIIVADqwryAD0ON%rmy@frippery.org \
--to=rmy@frippery.org \
--cc=git@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).