From 0b56090a154bf528808070d85ccff5856e29b0d2 Mon Sep 17 00:00:00 2001 From: John Haley Date: Thu, 5 Mar 2015 17:18:40 -0700 Subject: [PATCH] Put `Remote.Push` on the remote prototype --- lib/remote.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);