git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git init with template dir

From
ACAlex Cornejo <acornejo@gmail.com>
Date
Jun 12, 2015, 15:59 UTC
Message-ID
<loom.20150612T175402-182@post.gmane.org>
In-Reply-To
<xmqqioatdk0z.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster <at> pobox.com> writes:
Show 7 quoted lines
> Hmmm, I do not seem to be able to do this, though.
> 
>         $ ln -s $HOME/g/share/git-core/templates /var/tmp/git-template
>         $ cd /var/tmp
> 	$ git init --template=/var/tmp/git-template new
>         $ find new/.git -type l
>         ... nothing ...
Thanks for your prompt response Juno.

That make sense. The fact that you were unable to reproduce this tells me that there is probably something fishy/unexpected with the environment in which I tried this (which is not too surprising, given that I was doing it inside a linux container, inside a virtual machine, where both of these were setup using a scripts which ultimately failed after the git init step, due to the symlink behavior I described, but most likely this is my own fault). I should have tried to reproduce this on a clean slate before posting this question.

Thanks again,
Alex
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “git init with template dir”
  1. Alex CornejoJun 12, 2015
  2. Junio C HamanoJun 12, 2015
  3. Alex CornejoJun 12, 2015
  4. Junio C HamanoJun 12, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.