Fix checkout NONE to not remove file If you are checking out NONE, then don't remove.
diff --git a/src/checkout.c b/src/checkout.c
index 5b1f6cd..72fe536 100644
--- a/src/checkout.c
+++ b/src/checkout.c
@@ -246,7 +246,7 @@ static int checkout_action_no_wd(
*action = CHECKOUT_ACTION_IF(SAFE, UPDATE_BLOB, NONE);
break;
case GIT_DELTA_DELETED: /* case 8 or 25 */
- *action = CHECKOUT_ACTION__REMOVE;
+ *action = CHECKOUT_ACTION_IF(SAFE, REMOVE, NONE);
break;
default: /* impossible */
break;