git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Sparse worktree always contains root files
@ 2024-03-13 18:16 Jeppe Øland
  2024-03-13 18:34 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Jeppe Øland @ 2024-03-13 18:16 UTC (permalink / raw)
  To: git

Hi there,

I'm trying to use sparse checkouts in a large project, and one oddity
(bug?) came up.

If I do a normal full clone of a repository, then do:
    git worktree add ../sparse --no-checkout
    cd ../sparse
    git sparse-checkout set somepath
    git checkout
Now indeed it is a sparse worktree, but the files from the root
directory are also there.

This also happens with traditional (non-worktree) partial clones.
(I did both shallow, blob-less and tree-less, and all of them behave
the same way)

Regards,
-Jeppe

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-13 18:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-13 18:16 Sparse worktree always contains root files Jeppe Øland
2024-03-13 18:34 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).