我无法更新git子模块,错误如下:
$ git submodule init
Submodule 'build/html' (git@github.com:quadroid/clonejs.git) registered for path 'build/html'
...
$ git submodule update
Cloning into 'build/html'...
Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Run Code Online (Sandbox Code Playgroud)
但是当我在本地执行相同的任务时,一切都很好.
我如何解决这个问题,以便Travis CI构建通过,我仍然可以单击repo中的子模块来指向它?
可以混合严格和非严格的代码.但即使对它的调用不是严格的代码,你也不能使用调用者.有人知道任何解决方法吗?
我试过这个:
(function strict(){
"use strict";
nonStrict();//ok
nonStrictCaller();//error :(
})();
function nonStrict(){
return 011;//Octal literals are not allowed in strict mode
}
function nonStrictCaller(){
return nonStrictCaller.caller;
}
Run Code Online (Sandbox Code Playgroud)