Skip to content

Instantly share code, notes, and snippets.

@adityadeshpande
Created July 6, 2020 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adityadeshpande/1aaffb9b274bbbbcaa4a69a65200eaf8 to your computer and use it in GitHub Desktop.
Save adityadeshpande/1aaffb9b274bbbbcaa4a69a65200eaf8 to your computer and use it in GitHub Desktop.
async function CloneRepo() {
var cloneOptions = {
fetchOpts: { callbacks: credentialsCallback }
};
nodegit.Clone(url, dir, cloneOptions).then(function (repo) {
debug.verbose("Cloned " + path.basename(url) + " to " + repo.workdir());
}).catch(function (err) {
debug.verbose(err);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment