Avoid spurious error messages on error mistakes.

Prior to that, if the user chose "squash" as a first action, the stderr
looked like:

    grep: /home/madcoder/dev/scm/git/.git/rebase-merge/done: No such file or directory
    Cannot 'squash' without a previous commit

Now the first line is gone.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Pierre Habouzit 2009-01-13 00:09:36 +01:00 коммит произвёл Junio C Hamano
Родитель 47a845bfc3
Коммит 12dd111288
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -309,7 +309,7 @@ do_next () {
squash|s)
comment_for_reflog squash
has_action "$DONE" ||
test -f "$DONE" && has_action "$DONE" ||
die "Cannot 'squash' without a previous commit"
mark_action_done