Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update push example
`NodeGit.Push` is gone. Now it's `NodeGit.Remote.prototype.push`.

This updates the example to reflect that and closes #429
  • Loading branch information
John Haley committed Feb 27, 2015
commit a82dc44f61a374ef6db24086ce3f674eb2cbffd5
6 changes: 5 additions & 1 deletion examples/push.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ fse.remove(path.resolve(__dirname, repoDir))
});

// Create the push object for this remote
return nodegit.Push.create(remote)
return remote.push(
["refs/heads/master:refs/heads/master"],
null,
repository.defaultSignature(),
"Push to master")
.then(function(pushResult) {
push = pushResult;

Expand Down