We do this for import-tar and import-fs, we should do it for pull-tar, too. Fixes: #17563 (cherry picked from commit c33e405f)