[BUG] git init doesn't respect `--template` like configuration variable init.templateDir and $GIT_TEMPLATE_DIR
- From
- Doron Behar <doron.behar@gmail.com>
- Date
- Feb 14, 2018, 10:10 UTC
- Message-ID
- <20180214101019.gaenosifgq3wx2nm@NUC.localdomain>
The title says it all.
If I run `git init --template=~/path/to/my/template` I get the following message:
warning: templates not found ~/path/to/my/template
But, if I run:
$ env GIT_TEMPLATE_DIR=~/path/to/my/template git init
I don't get a warning and the template is used just fine.
If I configure the configuration variable `init.templateDir` to `~/path/to/my/template` and run `git init` I don't get a warning and the template is used just fine.