Re: General questions - git archive a .j2 file with keyword expansion in the header section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 19, 2021 at 09:28:11PM +0000, Lin, Nathan (GSE) wrote:

> Got a question on using git keyword expansion on a .j2 template file.
> Keyword expansion does not seem to work with .j2 file. Please see
> below a snippet of my attempt to archive test.cfg.j2 containing git
> keyword expansions in the header. It works if I changes the .j2 file
> extension to something else, say .yaml. I have not been able to find
> any information about issue. Can you please review and advise? Thank
> you.

Do you have .gitattributes entries that tell Git it should apply the
"export-subst" attribute to any files? If so, does it cover .yaml files,
but not .j2?

-Peff



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux