diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-06-16 19:06:57 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-16 19:06:57 +0200 |
commit | 4a43d4f98a1a6a472ce1e87c64cb6df0d1653d02 (patch) | |
tree | 298f55985603d82fbf0b56512e3a434dc08242a6 /git-rebase--interactive.sh | |
parent | Merge branch 'jk/report-fail-to-read-objects-better' (diff) | |
parent | rebase -i: test "Nothing to do" case with autostash (diff) | |
download | git-4a43d4f98a1a6a472ce1e87c64cb6df0d1653d02.tar.xz git-4a43d4f98a1a6a472ce1e87c64cb6df0d1653d02.zip |
Merge branch 'rr/rebase-autostash-fix'
* rr/rebase-autostash-fix:
rebase -i: test "Nothing to do" case with autostash
rebase -i: handle "Nothing to do" case with autostash
Diffstat (limited to 'git-rebase--interactive.sh')
-rw-r--r-- | git-rebase--interactive.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index 6ec9d3cb40..f267d8b6c3 100644 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -1049,14 +1049,14 @@ fi has_action "$todo" || - die_abort "Nothing to do" + return 2 cp "$todo" "$todo".backup git_sequence_editor "$todo" || die_abort "Could not execute editor" has_action "$todo" || - die_abort "Nothing to do" + return 2 expand_todo_ids |