2017-05-29 170 views
0

手动设置template-Path之后,我收到了警告templates not found /OurServer/SomeDirectory/GitTemplate。当我查看repo时,模板中的钩子不存在。但是,当我创建一个新的回购所有钩子被复制。在克隆但未创建时未找到Git模板

路径是Networkpath: 在Windows中:\\ OurServer \ SomeDirectory \ GitTemplate 项在全系统gitconfig:

[init] 
    templatedir = "//OurServer/SomeDirectory/GitTemplate" 

有趣的是路径在配置设置之间的区别://OurServer并在错误/OurServer

如果我将其更改为

[init] 
    templatedir = "///OurServer/SomeDirectory/GitTemplate" 

克隆作品,但随后创建显示错误templates not found ///OurServer/SomeDirectory/GitTemplate

我使用git 2.13在Windows 7上使用MinGW。

有人有建议吗?

回答

1

如果将网络驱动器映射到驱动器号并直接配置该驱动器而不是网络路径,则该驱动器将工作。

这似乎是一个错误,你应该报告给Git邮件列表,这是官方报告错误的方式。