git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git init with template dir
@ 2015-06-12  7:09 Alex Cornejo
  2015-06-12 15:27 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Cornejo @ 2015-06-12  7:09 UTC (permalink / raw)
  To: git

I was surprised to see that when using git-init, if the template folder
is itself a symlink, then the contents of the template is NOT copied to
the resulting git repository, but instead each individual file is
symlinked.

For my particular use case, this is undesirable (since if I am not
careful, then when I change the hook of one git repo, it
actually changes the hooks of all other repos too). It is easy
enough for me to work around this (i.e. by instead pointing my gitconfig
to use a template dir which is not a symlink), but I was
wondering weather this is a feature folks use (and for what end), or if
this is unintended behavior.

Furthermore, would a patch be welcome that either disables this
feature through an option (or perhaps permanently by just copying the
contents of the symlinked folder instead of creating individual
symlinks), or am I the only git user that was surprised by this
behavior and wanted to disable it?

- Alex

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-12 16:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-12  7:09 git init with template dir Alex Cornejo
2015-06-12 15:27 ` Junio C Hamano
2015-06-12 15:59   ` Alex Cornejo
2015-06-12 16:13     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).