Skip to content

Commit

Permalink
Issue rubenv#95 Add support for git push --follow-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
antonionoca committed Oct 20, 2017
1 parent 0eb1b01 commit d616297
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/command_push.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ module.exports = function (task, exec, done) {
useAsFlag: true,
useValue: false
},
{
option: 'followTags',
defaultValue: false,
useAsFlag: true,
useValue: false
},
{
option: 'force',
defaultValue: false,
Expand Down
10 changes: 10 additions & 0 deletions test/push_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ describe('push', function () {
.run(done);
});

it('should accept --follow-tags option', function (done) {
var options = {
followTags: true
};

new Test(command, options)
.expect(['push', '--follow-tags', 'origin'])
.run(done);
});

it('should accept --set-upstream option', function (done) {
var options = {
upstream: true,
Expand Down

0 comments on commit d616297

Please sign in to comment.