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

Re: Error with Templates: Could not find templates on cloning but on creating

From
Johannes Sixt <j6t@kdbg.org>
Date
May 29, 2017, 21:05 UTC
Message-ID
<fa99116f-ce82-f7c6-30ed-807c873c3634@kdbg.org>
In-Reply-To
<201705291120.v4TBKfkV082879@mikako.shopkeeper.de>
Am 29.05.2017 um 13:20 schrieb Mathias Artus:
Show 20 quoted lines
> Hi,
> Today i've tried to set up a template directory. I added in the system wide gitconfig the following lines:
> 	
> 	[init]
> 		templatedir = "//OurServer/SomeDirectory/GitTemplate"
> 
> Where //Ourserver is a Network Path.
> With this line i can create a new Repository and the template gets copied. But when i clone a repo the following error shows up and the template doesn't get copied:
> 	templates not found /OurServer/SomeDirectory/GitTemplate
> 
> I Recognized that one slash was missing. Hence i added one:
> 	[init]
> 		templatedir = "///OurServer/SomeDirectory/GitTemplate"
> 
> Fine, cloning works after that, but creating a new repository then shows up a Warning:
> 	templates not found ///OurServer/SomeDirectory/GitTemplate
> 
> Is that a known bug or is it my Failure?
> 
> I use git 2.13 on windows 7

I cannot reproduce. I'm on Windows 8.1, but I wouldn't expect that to make a difference. Are you using Cygwin's git by any chance?

-- Hannes
Previous: Mathias ArtusNext: Mathias Artus
Message 2 of 3 in “Error with Templates: Could not find templates on cloning but on creating”
  1. Mathias ArtusMay 29, 2017
  2. Johannes SixtMay 29, 2017
  3. AW: Error with Templates: Could not find templates on cloning but on creatingMathias Artus, May 30, 2017

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.