diff --git a/lib/remote.js b/lib/remote.js index 8ee13135b..e97e4f39c 100644 --- a/lib/remote.js +++ b/lib/remote.js @@ -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 @@ -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);