git am: Remove stray error message from sed

When --continue is invoked without any changes, the following stray
error message appears- sed: can't read $dotest/final-commit: No such
file or directory. Remove this by making sure that the file actually
exists.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Ramkumar Ramachandra 2010-06-02 10:33:37 +02:00 committed by Junio C Hamano
parent dc267b1ab4
commit 92f65e6ab6

View File

@ -693,7 +693,13 @@ do
else
action=yes
fi
FIRSTLINE=$(sed 1q "$dotest/final-commit")
if test -f "$dotest/final-commit"
then
FIRSTLINE=$(sed 1q "$dotest/final-commit")
else
FIRSTLINE=""
fi
if test $action = skip
then