Make sure git remote subdirs don't escape git root Upstream-commit: 64a74316634b75dd406673ebaba15eb2bbd96d11 Component: engine