git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git sparse-checkout set not working in git 2.27.0
@ 2020-06-11 16:49 Alasdair Hurst
  2020-06-11 18:30 ` Elijah Newren
  0 siblings, 1 reply; 2+ messages in thread
From: Alasdair Hurst @ 2020-06-11 16:49 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 580 bytes --]

In git 2.27.0 sparse-checkout doesn't seem to work the same as it did in
2.25.0:

 

Version: git version 2.27.0.windows.1 (the same behavior occurs on 2.27.0 on
linux too)

Commands:
-git clone git@repo.com:user/repo <mailto:git@repo.com:user/repo>
--no-checkout --depth 1 sparse-repo

-cd sparse-repo

-git sparse-checkout init

-git sparse-checkout add packages

 

Expected behavior (as seen in 0.25):

-ls
packages

The packages directory is checked out and available the repo root.


Current behavior

-ls

 

No packages directory is checked out and the root is empty.

 


[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 17070 bytes --]

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

* Re: git sparse-checkout set not working in git 2.27.0
  2020-06-11 16:49 git sparse-checkout set not working in git 2.27.0 Alasdair Hurst
@ 2020-06-11 18:30 ` Elijah Newren
  0 siblings, 0 replies; 2+ messages in thread
From: Elijah Newren @ 2020-06-11 18:30 UTC (permalink / raw)
  To: Alasdair Hurst; +Cc: Git Mailing List

On Thu, Jun 11, 2020 at 9:52 AM Alasdair Hurst <alasdairhurst@gmail.com> wrote:
>
> In git 2.27.0 sparse-checkout doesn't seem to work the same as it did in
> 2.25.0:
>
>
>
> Version: git version 2.27.0.windows.1 (the same behavior occurs on 2.27.0 on
> linux too)
>
> Commands:
> -git clone git@repo.com:user/repo <mailto:git@repo.com:user/repo>
> --no-checkout --depth 1 sparse-repo
>
> -cd sparse-repo
>
> -git sparse-checkout init
>
> -git sparse-checkout add packages
>
>
>
> Expected behavior (as seen in 0.25):
>
> -ls
> packages
>
> The packages directory is checked out and available the repo root.
>
>
> Current behavior
>
> -ls
>
>
>
> No packages directory is checked out and the root is empty.

Thanks for the report; this was fixed by commit b5bfc08a97
("sparse-checkout: avoid staging deletions of all files", 2020-06-05),
currently cooking in the 'next' branch of git.git.  See the thread at
https://lore.kernel.org/git/pull.801.v2.git.git.1591324899170.gitgitgadget@gmail.com/
if you want to read up on it.

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

end of thread, other threads:[~2020-06-11 18:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-11 16:49 git sparse-checkout set not working in git 2.27.0 Alasdair Hurst
2020-06-11 18:30 ` Elijah Newren

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).