From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjemli at gmail.com (Lars Hjemli) Date: Sun, 18 Mar 2012 10:32:20 +0100 Subject: cgit: fix for .gitattributes/export-subst In-Reply-To: References: Message-ID: On Tue, Jan 17, 2012 at 01:55, Tim Labath 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 = "" > > > 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