clone: fix --sparse option with URLs