【发布时间】:2020-09-09 11:55:20
【问题描述】:
我们中的一些人在网络共享 (u:\data\some_repo.git) 上使用裸存储库,这在预期的限制下运行良好
但是,就在最近,我无法执行与裸存储库相关的任何典型 git 活动:push pull clone。
所有活动都失败了:
致命:'u:\data\some_repo.git' 似乎不是 git 存储库致命:无法从远程存储库读取。
请确保您拥有正确的访问权限和存储库 存在。
我确实有访问权限,并且可以正常浏览此位置。如果我将 some_repo.git 复制到我的本地计算机并执行 git clone /c/Temp/some_repo.git 它可以工作。
没有延迟问题,我有完全的访问权限,我尝试在前面添加 file:///,但没有成功。 GIT_TRACE 不显示任何内容
GIT_TRACE=1 git clone "/u/data/some_repo.git" 12:52:37.433340 exec-cmd.c:237 跟踪:已解析的可执行目录: C:/STORAGE/Application/Git/mingw64/bin 12:52:37.435332 git.c:444
跟踪: 内置: git clone u:/data/some_repo.git 克隆到 'InternalTestInterface'... 12:52:38.129124 run-command.c:663
跟踪:run_command:未设置 GIT_DIR; 'git 上传包 '''u:/data/some_repo.git'''' 12:52:38.370091 exec-cmd.c:237
跟踪:已解析的可执行目录: C:/STORAGE/Application/Git/mingw64/libexec/git-core 12:52:38.370091 git.c:444 跟踪:内置:git upload-pack u:/data/some_repo.git 致命:'Hu:/data/some_repo.git' 没有出现 成为致命的 git 存储库:无法从远程存储库读取。请确保您拥有正确的访问权限和存储库 存在。
知道如何解决这个问题
--更新--
根据要求,尝试执行 git init:
/u/data/test.git
$ git init error: fstat on
//FQDN.com/site_###/Groups/data/test.git/.git/config failed: Invalid
argument fatal: could not set 'core.filemode' to 'false'
【问题讨论】: