From: hjemli at gmail.com (Lars Hjemli)
Subject: cgit: fix for .gitattributes/export-subst
Date: Sun, 18 Mar 2012 10:32:20 +0100 [thread overview]
Message-ID: <CAFXTnz5og5AY7+QMnAU4EEKBLZZ2Qt0g1SzPx9nkGuum2Tm1GQ@mail.gmail.com> (raw)
In-Reply-To: <CABS_=cFK7Oy+hirF3u2k6YZEFst4x7KYtfni+=WtMXp+SKXo=w@mail.gmail.com>
On Tue, Jan 17, 2012 at 01:55, Tim Labath <tim.labath at gmail.com> wrote:
> I encountered an issue where replacement strings specified by
> .gitattributes/export-subst for?git archive output?are not being
> generated/replaced by ui-snapshot.c.
>
> For example 'foo.py':
>
> commit_hash = "$Format:%H$"
>
> with '.gitattributes':
>
> foo.py export-subst
>
> ~/repo-dir$ git archive --o../archive.zip HEAD
>
> should output archive.zip with 'foo.py':
>
> commit_hash = "<SHA1 of HEAD>"
>
>
> Attached is a diff that implements the correct behavior. This code is based
> on the git/archive.c function?parse_treeish_arg.
Thanks, will apply to the wip-branch for testing.
--
larsh
parent reply other threads:[~2012-03-18 9:32 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <CABS_=cFK7Oy+hirF3u2k6YZEFst4x7KYtfni+=WtMXp+SKXo=w@mail.gmail.com>]
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=CAFXTnz5og5AY7+QMnAU4EEKBLZZ2Qt0g1SzPx9nkGuum2Tm1GQ@mail.gmail.com \
--to=cgit@lists.zx2c4.com \
/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).