Skip to content

Commit 0b56090

Browse files
author
John Haley
committed
Put Remote.Push on the remote prototype
1 parent a9553e0 commit 0b56090

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/remote.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var lookupWrapper = NodeGit.Utils.lookupWrapper;
44

55
var Remote = NodeGit.Remote;
66
var setCallbacks = Remote.prototype.setCallbacks;
7-
var push = Remote.push;
7+
var push = Remote.prototype.push;
88

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

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

0 commit comments

Comments
 (0)