2014-06-09 197 views
0

我更新的供应商时,有一个问题“kriswallsmith/assetic”:“1.1 *”,更新给了我这样的输出:作曲家更新kriswallsmith/assetic

Updating kriswallsmith/assetic (dev-master 5591252 => v1.1.2) 

[RuntimeException]                                     
    The .git directory is missing from /home/smiles/Downloads/auth_Project/vendor/kriswallsmith/assetic, see http://getcomposer.org/commit-deps for more information  

回答

0

字面上的意思是说:在该供应商目录中缺少.git目录。只需删除整个资产文件夹,然后再次运行composer update。这将再次添加资产和.git文件夹。 (如果kriswallsmithvendor namespace为空,那么您可以安全地删除该空文件夹。)

如果 - 例如 - 您正在使用subversion并忽略所有.git文件夹,则可能发生这种情况。下次结帐时,此文件夹将不存在。