Elijah Newren
fbae70ddc6
pull: avoid running both merge and rebase
...
When opt_rebase is true, we still first check if we can fast-forward.
If the branch is fast-forwardable, then we can avoid the rebase and just
use merge to do the fast-forward logic. However, when commit a6d7eb2c7a
("pull: optionally rebase submodules (remote submodule changes only)",
2017-06-23) added the ability to rebase submodules it accidentally
caused us to run BOTH a merge and a rebase. Add a flag to avoid doing
both.
This was found when a user had both pull.rebase and rebase.autosquash
set to true. In such a case, the running of both merge and rebase would
cause ORIG_HEAD to be updated twice (and match HEAD at the end instead
of the commit before the rebase started), against expectation.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2020-03-27 15:54:54 -07:00
..
2019-04-10 12:52:50 +09:00
2019-10-15 13:47:59 +09:00
2018-08-13 14:14:44 -07:00
2019-01-02 13:05:30 -08:00
2019-05-28 10:51:01 -07:00
2019-10-11 14:24:48 +09:00
2019-07-29 12:38:16 -07:00
2019-01-24 12:35:44 -08:00
2019-09-18 11:50:09 -07:00
2019-01-24 11:55:06 -08:00
2019-09-05 14:05:12 -07:00
2017-06-15 12:56:22 -07:00
2017-11-15 12:04:57 +09:00
2019-02-06 22:05:23 -08:00
2019-10-15 13:47:59 +09:00
2019-10-11 14:24:46 +09:00
2019-12-06 16:31:39 +01:00
2019-05-13 14:22:53 +09:00
2019-10-15 13:48:00 +09:00
2019-03-08 10:31:24 +09:00
2019-08-19 15:04:59 -07:00
2019-01-29 12:47:54 -08:00
2018-11-13 14:22:02 +09:00
2017-05-30 14:45:03 +09:00
2019-10-15 13:48:02 +09:00
2019-01-24 11:55:06 -08:00
2019-01-24 11:55:06 -08:00
2019-03-07 09:59:54 +09:00
2019-04-25 16:41:12 +09:00
2019-10-07 10:20:12 +09:00
2019-07-11 14:31:04 -07:00
2019-10-15 13:48:02 +09:00
2019-03-20 18:34:09 +09:00
2019-10-24 11:34:44 +09:00
2018-10-19 13:34:02 +09:00
2019-03-21 12:03:35 +09:00
2019-06-20 10:18:09 -07:00
2019-09-18 11:50:09 -07:00
2019-04-01 11:57:39 +09:00
2019-10-23 14:43:11 +09:00
2019-05-13 14:22:53 +09:00
2019-02-20 12:31:56 -08:00
2019-10-11 14:24:46 +09:00
2019-07-25 14:27:06 -07:00
2019-06-19 07:12:49 -07:00
2019-10-18 11:40:48 +09:00
2019-09-30 13:19:32 +09:00
2019-03-21 12:03:35 +09:00
2019-01-14 15:29:28 -08:00
2017-03-21 11:18:41 -07:00
2017-05-08 12:18:19 +09:00
2018-11-02 11:04:55 +09:00
2018-11-06 12:56:29 +09:00
2019-01-24 11:55:06 -08:00
2019-01-24 11:55:06 -08:00
2019-08-19 10:08:03 -07:00
2019-08-22 12:34:10 -07:00
2019-10-07 11:32:53 +09:00
2018-05-16 11:42:03 +09:00
2019-05-13 14:22:54 +09:00
2019-06-11 10:34:40 -07:00
2019-01-24 11:55:06 -08:00
2019-09-28 13:36:04 +09:00
2019-01-15 15:38:29 -08:00
2019-09-30 13:19:30 +09:00
2019-04-01 11:57:38 +09:00
2019-04-26 10:54:03 +09:00
2019-08-19 15:04:57 -07:00
2019-03-07 09:59:55 +09:00
2019-06-20 10:18:09 -07:00
2020-03-27 15:54:54 -07:00
2019-10-15 13:48:03 +09:00
2019-05-13 14:22:53 +09:00
2019-05-13 14:22:53 +09:00
2019-09-30 13:19:32 +09:00
2019-08-19 15:04:59 -07:00
2019-02-06 22:05:27 -08:00
2017-09-22 12:49:57 +09:00
2017-05-30 14:45:04 +09:00
2019-05-13 14:22:54 +09:00
2019-10-11 14:24:46 +09:00
2019-10-11 14:24:46 +09:00
2019-01-15 15:38:29 -08:00
2019-07-19 11:30:21 -07:00
2019-10-11 14:24:48 +09:00
2019-08-19 15:04:57 -07:00
2019-07-19 11:30:21 -07:00
2019-07-29 12:38:17 -07:00
2019-01-02 13:05:30 -08:00
2018-12-15 12:24:33 +09:00
2019-05-13 14:22:54 +09:00
2019-08-19 15:04:59 -07:00
2019-05-19 16:45:30 +09:00
2019-10-18 11:40:49 +09:00
2018-12-26 15:41:47 -08:00
2019-12-06 16:31:39 +01:00
2017-11-06 10:31:08 +09:00
2019-06-05 14:39:28 -07:00
2018-05-16 11:42:03 +09:00
2019-06-20 10:18:09 -07:00
2019-08-13 13:33:55 -07:00
2018-09-12 15:17:17 -07:00
2018-02-09 10:24:50 -08:00
2018-10-26 10:17:59 +09:00
2019-05-13 14:22:53 +09:00
2017-06-15 12:56:22 -07:00
2019-07-31 14:38:56 -07:00
2017-06-15 12:56:22 -07:00
2019-06-19 08:19:21 -07:00
2019-10-11 14:24:48 +09:00
2019-05-13 14:22:53 +09:00