On Tue, Jan 17, 2012 at 01:55, Tim Labath <[email protected]> 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

_______________________________________________
cgit mailing list
[email protected]
http://hjemli.net/mailman/listinfo/cgit

Reply via email to