nodegitを使用して、次のコードで git リポジトリを開こうとしています。
var git = require('nodegit');
git.Repo(repoPath, function(error, repository) {
if (error) throw error;
}
repoPath
これにより、変数に何を割り当てても、次のエラーが発生します。
git.Repo(repoPath, function(error, repository) {
^
Error: git_repository is required.
ローカル フォルダーへのパスを試しました。フォルダーを含むローカル フォルダーへのパスを.git
試しました。URL を使用してリモート リポジトリを試しました。いいえ、別に。
誰でも助けてもらえますか?
ノード v0.10.24 nodegit v0.1.4を使用しています
。
git 1.9.0.msysgit.0
勝利 8.1 プロ 64 ビット