サブモジュールをssh-urlsで指定したため、このエラーが発生します。 travis-ci環境からのsshアクセスの場合は、configure a keyが必要です。
また、gitサブモジュールの相対URLを使用することもできます。サブモジュールはGithubですべて利用できるからです。
GitはORIGIN
に対して相対URLを解決します。言う - - 原点が設定されているHTTPS経由でクローニングする場合次に
[submodule "lib/es5-shim"]
path = lib/es5-shim
url = ../../kriskowal/es5-shim.git
[submodule "build/html"]
path = build/html
url = ../clonejs.git
:相対URLで置き換え
[submodule "lib/es5-shim"]
path = lib/es5-shim
url = [email protected]:kriskowal/es5-shim.git
[submodule "build/html"]
path = build/html
url = [email protected]:quadroid/clonejs.git
:あなたの.gitmodules
から最初の2つのエントリを使用して
:
例このように:
$ git clone https://github.com/quadroid/clonejs.git
$ cd clonejs
$ git remote -v
origin https://github.com/quadroid/clonejs.git (fetch)
origin https://github.com/quadroid/clonejs.git (push)
ssh経由でクローンを作成する場合:相対URLで
$ git clone [email protected]:quadroid/clonejs.git
$ cd clonejs
$ git remote -v
origin [email protected]:quadroid/clonejs.git (fetch)
origin [email protected]:quadroid/clonejs.git (push)
、通常のサブモジュールのシーケンスが起源とは独立して動作します:
$ git submodule init
$ git submodule update
://github.com/quadroid/clonejs.git しかし、今、私はローカルにこのモジュールをプッシュすることはできません... – Quadroid
は、[キーを展開]を使用(httpsを:/ /help.github.com/categories/30/articles)、またはスクリプトがあなたのローカルではなく、travisでのみURLを変更するようにしてください –