mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-27 23:50:32 +00:00
Fix checkout NONE to not remove file
If you are checking out NONE, then don't remove.
This commit is contained in:
parent
b794cbcdb6
commit
25babd02a4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user