Skip to content

Commit

Permalink
Merge pull request #698 from bpeabody/fix-pull-rebase-deduction
Browse files Browse the repository at this point in the history
Fix rebase deduction logic in pull.
  • Loading branch information
bpeabody committed Mar 26, 2019
2 parents fb43980 + f56a670 commit 0479e22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion node/lib/util/pull.js
Expand Up @@ -100,7 +100,7 @@ ${colors.red(source)} in the remote ${colors.yellow(remoteName)}.`);
* @return bool * @return bool
*/ */
exports.userWantsRebase = co.wrap(function*(args, repo, branch) { exports.userWantsRebase = co.wrap(function*(args, repo, branch) {
if (args.rebase !== undefined) { if (args.rebase !== undefined && args.rebase !== null) {
return args.rebase; return args.rebase;
} }


Expand Down
4 changes: 4 additions & 0 deletions node/test/util/pull.js
Expand Up @@ -132,6 +132,10 @@ describe("userWantsRebase", function () {
null, null,
null)); null));


assert.equal(false, yield Pull.userWantsRebase({"rebase": null},
repo,
master));

assert.equal(false, yield Pull.userWantsRebase({}, assert.equal(false, yield Pull.userWantsRebase({},
repo, repo,
master)); master));
Expand Down

0 comments on commit 0479e22

Please sign in to comment.