I have a number of template files in my git repository which change at different rates. These are then used to generate HTML pages. If someone reports a problem, I want them to
Specify a template that does what you want when cloning, or supply a repo-setup
script and type sh repo-setup
after cloning, or put the necessary commands in a paragraph in the README and say V}!sh
or however your editor pipes commands through the shell, or use git archive
for distribution rather than git push
, since that supports arbitrary keyword substitution. Turning a bare git clone
into a code-injection vector seems like a bad price to pay to avoid trivial inconveniences like this.