From: "Ulrik Sverdrup" <ulrik.sverdrup@gmail.com>
To: git@vger.kernel.org
Subject: Bug: git archive not doing export-subst when using --prefix= option
Date: Tue, 8 Apr 2008 23:35:04 +0200 [thread overview]
Message-ID: <a1b6cb1b0804081435w24074d1aq177e8c1a5e1af0f8@mail.gmail.com> (raw)
In one of my small projects, I just tried to add an export-subst format to
my version file to have the git version in the released tarball. However it
seems git-archive --prefix="tarballname-version/" does not work well
together with export-subst.
I have very old git! (v1.5.4.4). So please help me and try to reproduce
this with newer versions:
The repo is publicly available at
git clone git://repo.or.cz/dragbox.git
The file in the repo having an export substitution format is
Dragbox/version.py.in
Now try to export the git tree with git-archive, with and without --prefix=
We will do some hackery and grep the binary output.
$ git archive HEAD | grep --text "git_version"
git_version = "9c3f6c0af7e67a354cac9a24e24e2057d17778ef"
$ git archive --prefix="dragbox-git/" HEAD | grep --text "git_version"
git_version = "$Format:%H$"
I noticed in another even smaller repository that it would not behave the
same but equally spurious; it would only perform the substitution for some
prefixes and not for others (for example with or without ending slash)
Regards
Ulrik Sverdrup
next reply other threads:[~2008-04-08 21:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-08 21:35 Ulrik Sverdrup [this message]
2008-04-09 21:14 ` [PATCH] git-archive: ignore prefix when checking file attribute René Scharfe
2008-04-09 22:58 ` Ulrik Sverdrup
2008-04-10 10:56 ` Junio C Hamano
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=a1b6cb1b0804081435w24074d1aq177e8c1a5e1af0f8@mail.gmail.com \
--to=ulrik.sverdrup@gmail.com \
--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).