rebase -i: don't error out if $state_dir already exists

In preparation for a later patch that will create $state_dir/autostash in git-rebase.sh before anything else can happen, change a `mkdir $state_dir` call to `mkdir -p $state_dir`. The change is safe, because this is not a test to detect an in-progress rebase (that is already done much earlier in git-rebase.sh). Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ramkumar Ramachandra committed May 12, 2013 at 17:26 UTC 1224f3d0f1b47fc640e76b053f25d91e3ca84bcf
1 file changed +1 -1
git-rebase--interactive.sh
+1 -1
@@ -842,7 +842,7 @@ then
842 fi
843
844 orig_head=$(git rev-parse --verify HEAD) || die "No HEAD?"
845 -mkdir "$state_dir" || die "Could not create temporary $state_dir"
845 +mkdir -p "$state_dir" || die "Could not create temporary $state_dir"
846
847 : > "$state_dir"/interactive || die "Could not mark as interactive"
848 write_basic_state