From: Ramkumar Ramachandra Date: Thu, 13 Jun 2013 16:06:11 GMT Subject: [PATCH 1/3] rebase: guard against missing files in read_basic_state() Message-ID: <1371139573-28047-2-git-send-email-artagnon@gmail.com> In-Reply-To: <1371139573-28047-1-git-send-email-artagnon@gmail.com> Signed-off-by: Ramkumar Ramachandra --- git-rebase.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git-rebase.sh b/git-rebase.sh index d0c11a9..2122fe0 100755 --- a/git-rebase.sh +++ b/git-rebase.sh @@ -84,6 +84,8 @@ keep_empty= test "$(git config --bool rebase.autosquash)" = "true" && autosquash=t read_basic_state () { + test -f "$state_dir/head-name" && + test -f "$state_dir/onto" && head_name=$(cat "$state_dir"/head-name) && onto=$(cat "$state_dir"/onto) && # We always write to orig-head, but interactive rebase used to write to -- 1.8.3.1.381.gf08dd97.dirty