Fix rebase when diff contains only deleted files
If the diff between two diffs only contains deleted files, a sparse checkout will be empty, and the worktree checkout will fail.
To fix this problem, we detect this error message from Git and retry the checkout after disabling sparse checkout.
Closes gitlab#209817 (closed)
Edited by GitLab Release Tools Bot