threads / discuss / 34939

Issue with sparse checkout

Subject: Issue with sparse checkout

## tl;dr

4 messages between Sep 16, 2013 and Sep 17, 2013.

replies: 3people: 3as markdown or json

Martin Gregory· Sep 16, 2013, 13:20 UTC · lore
I wonder if you can advise me if this is a bug with sparsecheckout, or if not what I'm doing wrong:
http://pastebin.com/HUaWrtef

Basically, I believe that when I do git read-tree, I should be left with only the directory CONFIGURATION.

However, DV_TDM remains. But it's status seems to be "indeterminate" from git's point of view - it neither reports it as being an untracked nor as being deleted when I delete it. FWIW, that directory contains a folder which contains files.

I also tried a simpler sparsecheckout file, with just /CONFIGURATION

in it, but this was worse: it left DV_SERVICES in place as well.
Thanks for any advice.
This is git 1.8.3.msysgit.0
Martin
Martin Gregory· Sep 16, 2013, 22:46 UTC · re: Martin Gregory · lore

Re: Issue with sparse checkout

An additional note.  I did 
git ls-files -v | grep ^S 

and I can see that the files that remain in the working version have the ^S bit set.

So it does feel like a bug to me: why are files with ^S set remaining in the working version after

git read-tree -mu HEAD 
?
Regards,
Martin
Duy Nguyen· Sep 17, 2013, 11:27 UTC · re: Martin Gregory · lore

Re: Issue with sparse checkout

On Tue, Sep 17, 2013 at 5:46 AM, Martin Gregory <martin.gregory@adelaideinterim.com.au> wrote:

Show 13 quoted lines
> An additional note.  I did
>
> git ls-files -v | grep ^S
>
> and I can see that the files that remain in the working version have the ^S
> bit set.
>
> So it does feel like a bug to me: why are files with ^S set remaining in the
> working version after
>
> git read-tree -mu HEAD
>
> ?

I don't know. Maybe the bits are set, but then the remove operation fails (silently). I tried to reproduce on Linux without success. It seemed to work ok. Can you copy the (stripped down if necessary) repository somewhere? Pack the whole thing including worktree and config file, just in case.

-- 
Duy
Martin Gregory· Sep 17, 2013, 22:16 UTC · re: Duy Nguyen · lore

re[2]: Issue with sparse checkout

Hi Duy,
Thanks for taking a look.
Show 10 quoted lines
>>  > So it does feel like a bug to me: why are files with ^S set remaining in
>>  the
>>  > working version after
>>  >
>>  > git read-tree -mu HEAD
>>  >
>>  > ?
>>
>>  I don't know. Maybe the bits are set, but then the remove operation
>>  fails (silently). I tried to reproduce on Linux without success.
I also tried to make a small repo to reproduce and failed.

I will try to strip and send ... might take a little while to get to the point where it still happens but there's no work related stuff in there

Thanks again,
Martin

← back to recent threads