Created
July 6, 2020 17:33
-
-
Save adityadeshpande/1aaffb9b274bbbbcaa4a69a65200eaf8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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