在手动设置模板路径之后,我得到了警告templates not found /OurServer/SomeDirectory/GitTemplate。当我查看回购时,模板中的钩子是不存在的。但是当我创建一个新的回购系统时,所有的钩子都会被复制。
该路径是一个网络路径:在Windows:\OurServer\SomeDirectory\GitTemplate条目中,系统范围内的gitconfig:
[init]
templatedir = "//OurServer/SomeDirectory/GitTemplate"有趣的是config ://OurServer中的路径集与错误/OurServer中的路径集之间的区别。
如果我把它改成
[init]
templatedir = "///OurServer/SomeDirectory/GitTemplate"克隆工作,但随后创建显示错误templates not found ///OurServer/SomeDirectory/GitTemplate。
我在Windows 7上使用了git 2.13和mingw。
有人有什么建议吗?
发布于 2017-05-29 13:53:24
如果您将网络驱动器映射到驱动器号并配置该驱动器,而不是直接配置网络路径,则它将工作。
这似乎是一个bug,您应该将它报告给Git邮件列表,这是报告bug的官方方法。
https://stackoverflow.com/questions/44239659
复制相似问题