threads / discuss / 46069

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

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

## tl;dr

3 messages between May 29, 2017 and May 30, 2017.

replies: 2people: 2as markdown or json

Mathias Artus· May 29, 2017, 11:20 UTC · lore
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

Kind regards Mathias Artus

Johannes Sixt· May 29, 2017, 21:05 UTC · re: Mathias Artus · lore

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

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
Mathias Artus· May 30, 2017, 08:19 UTC · re: Johannes Sixt · lore

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

Hi Hannes, no i use the native installation with Mingw.

Greetz Mathias

Mit freundlichen Grüßen Mathias Artus pecont steuerungen / software GmbH / Kurt Franke Straße 1 /  99098 Erfurt/  Geschäftsführer:  Volker Pennewitz,  Ants Wiegand / Tel.: +49 (172) 6948649 / Fax: +49 (36203) 719776 / HRB: 107443 / Jena

-----Ursprüngliche Nachricht-----
Von: Johannes Sixt [mailto:j6t@kdbg.org] 
Gesendet: Montag, 29. Mai 2017 23:05
An: Mathias Artus <mathias.artus@pecont.de>
Cc: git@vger.kernel.org
Betreff: Re: Error with Templates: Could not find templates on cloning but on creating
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

← back to recent threads