cgit: fix for .gitattributes/export-subst

Lars Hjemli hjemli at gmail.com
Sun Mar 18 10:32:20 CET 2012


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




More information about the CGit mailing list