Ruby berks安装找不到要重写的内容

Ruby berks安装找不到要重写的内容,ruby,windows,git,chef-infra,berkshelf,Ruby,Windows,Git,Chef Infra,Berkshelf,我使用的是一台Windows7x64计算机,安装了Chefdk0.3.0-1,还安装了Berkself和OmnibusGems。我设置了Berksfile和metadata.rb文件 元数据.rb 伯克斯菲尔 我将系统环境变量中的环境变量设置为: BERKSHELF_PATH=C:/ 但是,当我发出命令时: > berks install 我得到以下错误: C:\c\c\cookbook_test> berks install Resolving cookbook depen

我使用的是一台Windows7x64计算机,安装了Chefdk0.3.0-1,还安装了Berkself和OmnibusGems。我设置了Berksfile和metadata.rb文件

元数据.rb

伯克斯菲尔

我将系统环境变量中的环境变量设置为:

BERKSHELF_PATH=C:/
但是,当我发出命令时:

> berks install
我得到以下错误:

C:\c\c\cookbook_test> berks install
Resolving cookbook dependencies...
Fetching 'addm_setup' from source at .
Fetching 'sudo' from https://github.com/opscode-cookbooks/sudo.git (at v2.6.0/cookbooks/sudo)
Git error: command `git filter-branch --subdirectory-filter "cookbooks/sudo" --force` failed. If this error persists, try removing the cache directory at 'C:/chef/.cache/git/6f5ef5c786d127e1b549253a13b5d48c181aedeb'.Output from the command:

Found nothing to rewrite

我发现我不能使用Cygwin Git,要么是因为我不知道该为它配置什么,要么是因为Git scm中的Git到目前为止还可以工作。我还使用Windows命令提示符来执行这些命令。我不知道从这里该做什么,也不知道这是想告诉我什么

不幸的是,幸运的是,这是一个简单的答案。我收到问题中列出的错误,因为我有

rel:‘烹饪书/sudo’ 他们所做的是寻找一个预先存在的存储库,但它并不存在。因此,一旦我删除了它,烹饪书就被下载并包括在内供使用

新的结果是:

C:\C\C\cookbook\u test>berks安装 正在解决cookbook依赖项。。。 正在从源代码处获取“cookbook_test”。 从中获取“sudo”https://github.com/opscode-cookbooks/sudo.git 在v2.6.0 从中获取“用户”https://github.com/sethvargo-cookbooks/users.git 在v1.7.0上 从中获取cookbook索引https://supermarket.getchef.com... 使用源代码处的cookbook_测试0.1.0。 使用来自的sudo 2.6.0https://github.com/opscode-cookbooks/sudo.git 在v2.6.0 从中使用用户1.7.0https://github.com/sethvargo-cookbooks/users.git 在v1.7.0上
不完全是这样,它只是在git存储库中查找一个子文件夹。因为这里不是这样,所以不需要。
> berks install
C:\c\c\cookbook_test> berks install
Resolving cookbook dependencies...
Fetching 'addm_setup' from source at .
Fetching 'sudo' from https://github.com/opscode-cookbooks/sudo.git (at v2.6.0/cookbooks/sudo)
Git error: command `git filter-branch --subdirectory-filter "cookbooks/sudo" --force` failed. If this error persists, try removing the cache directory at 'C:/chef/.cache/git/6f5ef5c786d127e1b549253a13b5d48c181aedeb'.Output from the command:

Found nothing to rewrite