# Behavior change in 2.7.0: With core.sparseCheckout some files have the skip-worktree bit set after a checkout.

2 messages from 2016-01-08 to 2016-01-08. Participants: Micha Wiedenmann, Duy Nguyen.
Thread: https://gitlist.dev/t/41147

## Micha Wiedenmann, 2016-01-08 10:35

Subject: Behavior change in 2.7.0: With core.sparseCheckout some files have the skip-worktree bit set after a checkout.
Message-ID: <trinity-5caa2985-5cf1-453b-9a9e-bcce057f8615-1452249323061@3capp-gmx-bs51>
URL: https://gitlist.dev/e/trinity-5caa2985-5cf1-453b-9a9e-bcce057f8615-1452249323061%403capp-gmx-bs51

```
Hi,
 
I want to report a change in behavior Git 2.7.0. With `core.sparseCheckout` set to true, `git checkout` results in some files with a set skip-worktree bit, which was not the case in 2.6.4. (I am using Git for Windows, but assume this is a Git issue, which is why I report it to this list.)
 
Please see my test case:
 
#!/bin/bash
git --version
# git version 2.7.0.windows.1
mkdir test-case
cd test-case
git init
mkdir keep
echo keep > keep/keep.txt
echo foo > foo.txt
git add -A
git commit -m initial
git config core.sparseCheckout true
cat > .git/info/sparse-checkout <<EOF
/*
!/keep/tags/
EOF

git checkout
git ls-files -v
# H foo.txt
# S keep/keep.txt
# $ git --version

# git version 2.6.4.windows.1
# $ git checkout
# $ git ls-files -v
# # H foo.txt
# # H keep/keep.txt
# (Note that the result of keep/keep.txt is different)

git read-tree @
git ls-files -v
# H foo.txt
# H keep/keep.txt

I noticed this, when all my tracked files where suddenly missing from the working directory.

Hope that helps,
Micha Wiedenmann
 

```

## Duy Nguyen, 2016-01-08 10:49

Subject: Re: Behavior change in 2.7.0: With core.sparseCheckout some files have the skip-worktree bit set after a checkout.
Message-ID: <CACsJy8A7LR0xmwuqCKxxiiGeApywYb+_Zxcp=PG=sHHfpeBZRg@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8A7LR0xmwuqCKxxiiGeApywYb%2B_Zxcp%3DPG%3DsHHfpeBZRg%40mail.gmail.com
In-Reply-To: <trinity-5caa2985-5cf1-453b-9a9e-bcce057f8615-1452249323061@3capp-gmx-bs51>

```
On Fri, Jan 8, 2016 at 5:35 PM, Micha Wiedenmann <mw-u2@gmx.de> wrote:
> Hi,
>
> I want to report a change in behavior Git 2.7.0. With `core.sparseCheckout` set to true, `git checkout` results in some files with a set skip-worktree bit, which was not the case in 2.6.4. (I am using Git for Windows, but assume this is a Git issue, which is why I report it to this list.)

I might know the reason (and I'm quickly becoming king of
regressions). Checking...
-- 
Duy

```
