[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cgit
Subject:    cgit: fix for .gitattributes/export-subst
From:       hjemli () gmail ! com (Lars Hjemli)
Date:       2012-03-18 9:32:20
Message-ID: CAFXTnz5og5AY7+QMnAU4EEKBLZZ2Qt0g1SzPx9nkGuum2Tm1GQ () mail ! gmail ! com
[Download RAW message or body]

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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic