|
|
@ -36,10 +36,11 @@ module.exports = function (options, globalCallback) { |
|
|
|
|
|
|
|
|
|
|
|
console.log("Cloning %s to %s", url, path); |
|
|
|
console.log("Cloning %s to %s", url, path); |
|
|
|
|
|
|
|
|
|
|
|
nodegit.Repo.clone(url, path, null /*new nodegit.CloneOptions({"checkout_branch": options.branch})*/, function (err, repo) { |
|
|
|
nodegit.Clone(url, path) |
|
|
|
if (err) { |
|
|
|
.catch(function(err) { |
|
|
|
return globalCallback(err); |
|
|
|
return globalCallback(err); |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
.then(function (repo) { |
|
|
|
|
|
|
|
|
|
|
|
console.log("Cloned %s to %s", url, path); |
|
|
|
console.log("Cloned %s to %s", url, path); |
|
|
|
|
|
|
|
|
|
|
@ -53,5 +54,5 @@ module.exports = function (options, globalCallback) { |
|
|
|
|
|
|
|
|
|
|
|
gitToFs(commit, exported, globalCallback); |
|
|
|
gitToFs(commit, exported, globalCallback); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|
}; |
|
|
|