Skip to content

Fix rebase when diff contains only deleted files

Stan Hu requested to merge sh-fix-rebase into master

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

Merge request reports

Loading