Skip to content

Commit 8b3753f

Browse files
committed
Merge pull request nodegit#474 from nodegit/remote-push-defaults
Add defaults to `Remote.prototype.push`
2 parents 82abfdf + ce50a63 commit 8b3753f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/remote.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Remote.prototype.setCallbacks = function(callbacks) {
3535
*/
3636
Remote.prototype.push = function(refSpecs, options, signature, message) {
3737
options = normalizeOptions(options, NodeGit.PushOptions);
38+
signature = signature || this.owner().defaultSignature();
39+
message = message || "Push to " + this.name();
3840

3941
return push.call(this, refSpecs, options, signature, message);
4042
};

0 commit comments

Comments
 (0)