Skip to content

Commit 7061d68

Browse files
committed
Updated examples to show new syntax
1 parent 5773320 commit 7061d68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/clone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var path = "/tmp/nodegit-clone-demo";
66
fse.remove(path).then(function() {
77
var entry;
88

9-
nodegit.Clone.clone(
9+
nodegit.Clone(
1010
"https://github.com/nodegit/nodegit.git",
1111
path,
1212
{

examples/cloneFromGithubWith2Factor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var opts = {
3636
};
3737

3838
fse.remove(path).then(function() {
39-
nodegit.Clone.clone(repoUrl, path, opts)
39+
nodegit.Clone(repoUrl, path, opts)
4040
.done(function(repo) {
4141
if (repo instanceof nodegit.Repository) {
4242
console.info("We cloned the repo!");

0 commit comments

Comments
 (0)