git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* dotfiles in git template dir are not copied
@ 2017-02-17  9:31 greg0ire
  2017-02-17 20:44 ` Jeff King
  0 siblings, 1 reply; 12+ messages in thread
From: greg0ire @ 2017-02-17  9:31 UTC (permalink / raw)
  To: git

Hi,

I noticed yesterday that dotfiles inside the directory configured in 
init.templatedir are not copied when creating a new repository.

Here is the line I think is responsible for this behavior : 
https://github.com/git/git/blob/master/builtin/init-db.c#L48

Is it a bug or a feature?

Steps to reproduce, provided you already have a template dir configured :

cd $(git config --path --get init.templatedir)
touch copied
touch .not_copied
cd /tmp
mkdir whatever
cd whatever
git init
ls -la .git

On my machine, the last command does not list .not_copied .

--
greg0ire

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

end of thread, other threads:[~2017-02-17 23:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-17  9:31 dotfiles in git template dir are not copied greg0ire
2017-02-17 20:44 ` Jeff King
2017-02-17 21:42   ` Grégoire PARIS
2017-02-17 22:12     ` Junio C Hamano
2017-02-17 22:37       ` Grégoire PARIS
2017-02-17 22:44         ` Junio C Hamano
2017-02-17 23:39           ` Grégoire PARIS
2017-02-17 22:39     ` Philip Oakley
2017-02-17 22:49       ` Grégoire PARIS
2017-02-17 22:56     ` Junio C Hamano
2017-02-17 23:22       ` Grégoire PARIS
2017-02-17 23:30         ` Grégoire PARIS

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).