【发布时间】:2015-02-20 22:51:26
【问题描述】:
我的 vagrant 设置中有一个同步文件夹
local.vm.synced_folder "../api", "/api"
我希望能够git clone 另一个存储库进入此文件夹,如下所示:
git "api" do
destination "/api"
repository "git@github.com:<user>/<repo>.git"
revision "development"
checkout_branch "development"
action :sync
end
但我收到一条错误消息:
==> local: STDERR: fatal: could not create work tree dir '/api'.: File exists
尝试使用另一个空但已创建的文件夹/test,这很有效。
【问题讨论】:
标签: git vagrant chef-infra chef-solo