Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-12-07 02:09:21 +0300
committerJunio C Hamano <gitster@pobox.com>2019-12-07 02:09:22 +0300
commitf233c9f4550a831a69892e0a38db2a7654beb995 (patch)
treeac12d3bd63de58f9b128729192aed904caa6b4f3 /sequencer.c
parentef3ce7c4b9f5ed7a13a0efcc576df855c4fd3d0f (diff)
parentbefd4f6a81d382cc2b34186b619f734fa5f8070f (diff)
Merge branch 'sg/assume-no-todo-update-in-cherry-pick'
While running "revert" or "cherry-pick --edit" for multiple commits, a recent regression incorrectly detected "nothing to commit, working tree clean", instead of replaying the commits, which has been corrected. * sg/assume-no-todo-update-in-cherry-pick: sequencer: don't re-read todo for revert and cherry-pick
Diffstat (limited to 'sequencer.c')
-rw-r--r--sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sequencer.c b/sequencer.c
index d18aba62f5..35d996cbd0 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -3930,7 +3930,7 @@ static int pick_commits(struct repository *r,
item->commit,
arg, item->arg_len,
opts, res, 0);
- } else if (check_todo && !res) {
+ } else if (is_rebase_i(opts) && check_todo && !res) {
struct stat st;
if (stat(get_todo_path(opts), &st)) {