Skip to content

Commit a82dc44

Browse files
author
John Haley
committed
Update push example
`NodeGit.Push` is gone. Now it's `NodeGit.Remote.prototype.push`. This updates the example to reflect that and closes nodegit#429
1 parent a42b721 commit a82dc44

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/push.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ fse.remove(path.resolve(__dirname, repoDir))
6060
});
6161

6262
// Create the push object for this remote
63-
return nodegit.Push.create(remote)
63+
return remote.push(
64+
["refs/heads/master:refs/heads/master"],
65+
null,
66+
repository.defaultSignature(),
67+
"Push to master")
6468
.then(function(pushResult) {
6569
push = pushResult;
6670

0 commit comments

Comments
 (0)