FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Put `Remote.Push` on the remote prototype by johnhaley81 · Pull Request #470 · nodegit/nodegit · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .js  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 2 additions & 2 deletions lib/remote.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL