bower ECMDERR致命:dumb http传输不支持--depth

时间:2014-07-04 07:45:36

标签: git bower bower-install

运行bower install,我收到以下错误消息:

...
bower require-handlebars-plugin#0.8.0         checkout v0.8.0
bower nouislider#master                       checkout master
bower jquery#1.7.2                            checkout 1.7.2
bower backbone#1.1.2                          checkout 1.1.2
bower hoverIntent#*                           checkout master
bower handlebars#1.0.0                        checkout 1.0.0
bower requirejs-plugins#1.0.2                 checkout 1.0.2
bower fastclick#1.0.2                         checkout v1.0.2
bower underscore#1.5.1                        checkout 1.5.1
bower supersized-with-swipe#*                 checkout master
bower require-handlebars-plugin#0.8.0          ECMDERR Failed to execute "git clone http://repository_url/js-ext-libs/require-handlebars-plugin.git -b v0.8.0 --progress . --depth 1", exit code of #128

Additional error details:
Cloning into '.'...
fatal: dumb http transport does not support --depth

再次运行bower安装,我在不同的包上得到了相同的结果。我唯一一个关于这个问题的同事,配置看起来非常相似。 任何线索?我有以下配置:

$ git config --global --list
user.name=myname
user.email=myemail
core.autocrlf=true
credential.helper=!'C:\Users\myname\AppData\Roaming\GitCredStore\git-credential-winstore.exe'
http.sslcainfo=c:/Users/myname/Documents/projects/credentials/cert.pem
http.sslverify=false
branch.autosetuprebase=always
url.https://.insteadof=git://

由于

1 个答案:

答案 0 :(得分:3)

Bower支持自版本1.3.0以来的dumb http存储库

有关问题的详细信息以及从https://github.com/bower/bower/pull/1062中提取的已实施解决方案:

Bower版本< 1.3.0不支持哑的http服务器,解决方案是扩展已经建立的机制以支持不使用深度的回退,以涵盖这种情况。