Skip to content
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions lib/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var lookupWrapper = NodeGit.Utils.lookupWrapper;

var Remote = NodeGit.Remote;
var setCallbacks = Remote.prototype.setCallbacks;
var push = Remote.push;
var push = Remote.prototype.push;

/**
* Retrieves the remote by name
Expand Down Expand Up @@ -33,7 +33,7 @@ Remote.prototype.setCallbacks = function(callbacks) {
* @param {String} message The message to use for the update reflog messages
* @return {Number} error code
*/
Remote.push = function(refSpecs, options, signature, message) {
Remote.prototype.push = function(refSpecs, options, signature, message) {
options = normalizeOptions(options, NodeGit.PushOptions);

return push.call(this, refSpecs, options, signature, message);
Expand Down