# "Sparse checkout leaves no entry on working directory" all the time on Windows 7 on Git 1.8.5.2.msysgit.0

4 messages from 2014-02-06 to 2014-02-06. Participants: konstunn@ngs.ru, Johannes Sixt, Duy Nguyen, Constantine Gorbunov.
Thread: https://gitlist.dev/t/35812

## konstunn@ngs.ru, 2014-02-06 11:54

Subject: "Sparse checkout leaves no entry on working directory" all the time on Windows 7 on Git 1.8.5.2.msysgit.0
Message-ID: <web-57771132@mx45.intranet.ru>
URL: https://gitlist.dev/e/web-57771132%40mx45.intranet.ru

```
Greetings.

I've tried to perform a single simple task to fetch data
from the linux-next integration testing tree repo and
sparse checkout the "drivers/staging/usbip/" directory.

I managed to perform it successfully under Linux with Git
1.7.1.

But I always failed to perform checkout under Windows 7
with Git 1.8.5.2.msysgit.0 facing the following error:
"Sparse checkout leaves no entry on working directory".

Unfortunately, I haven't tried that under Linux with Git
1.8.5.2. So, don't know if there is the same problem.

However I typed the checkout directory in file
.git/info/sparse-checkout by using different formats with
and without the leading and the trailing slashes, with and
without asterisk after trailing slash, having tried all
the possible combinations, but, all the same,
nevertheless, the error occured.

On Linux I stored the checkout directory in
sparse-checkout file in the following way:
"drivers/staging/usbip/". And everything was fine under
Linux, but not under Windows.

However, I don't, of course, if the format of this
directory really matters.
May be the Git install on Windows 7 specific configuration
is the reason?

Could you, please, tell me, what might be wrong?
Am I doing something wrong or it's a bug?

Best Regards,
Constantine Gorbunov

```

## Johannes Sixt, 2014-02-06 13:20

Subject: Re: "Sparse checkout leaves no entry on working directory" all the time on Windows 7 on Git 1.8.5.2.msysgit.0
Message-ID: <52F38C1D.709@viscovery.net>
URL: https://gitlist.dev/e/52F38C1D.709%40viscovery.net
In-Reply-To: <web-57771132@mx45.intranet.ru>

```
Am 2/6/2014 12:54, schrieb konstunn@ngs.ru:
> However I typed the checkout directory in file
> ..git/info/sparse-checkout by using different formats with
> and without the leading and the trailing slashes, with and
> without asterisk after trailing slash, having tried all
> the possible combinations, but, all the same,
> nevertheless, the error occured.

Make sure that you do not use CRLF line terminators in the sparse-checkout
file.

-- Hannes

```

## Duy Nguyen, 2014-02-06 13:30

Subject: Re: "Sparse checkout leaves no entry on working directory" all the time on Windows 7 on Git 1.8.5.2.msysgit.0
Message-ID: <CACsJy8CG=d4jdQMW0tddrqUPCa+72yZe6i7LDBisWNo6KPF03g@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8CG%3Dd4jdQMW0tddrqUPCa%2B72yZe6i7LDBisWNo6KPF03g%40mail.gmail.com
In-Reply-To: <52F38C1D.709@viscovery.net>

```
On Thu, Feb 6, 2014 at 8:20 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
> Am 2/6/2014 12:54, schrieb konstunn@ngs.ru:
>> However I typed the checkout directory in file
>> ..git/info/sparse-checkout by using different formats with
>> and without the leading and the trailing slashes, with and
>> without asterisk after trailing slash, having tried all
>> the possible combinations, but, all the same,
>> nevertheless, the error occured.
>
> Make sure that you do not use CRLF line terminators in the sparse-checkout
> file.

I suspected the same thing. But it looks like we do trim CRLF. Another
option is the file is encoded in utf-16 or some encoding which ascii
is not a subset of.
-- 
Duy

```

## Constantine Gorbunov, 2014-02-06 19:56

Subject: Re:
Message-ID: <loom.20140206T205117-635@post.gmane.org>
URL: https://gitlist.dev/e/loom.20140206T205117-635%40post.gmane.org
In-Reply-To: <52F38C1D.709@viscovery.net>

```
Johannes Sixt <j.sixt <at> viscovery.net> writes:

> 
> Am 2/6/2014 12:54, schrieb konstunn <at> ngs.ru:
> > However I typed the checkout directory in file
> > ..git/info/sparse-checkout by using different formats with
> > and without the leading and the trailing slashes, with and
> > without asterisk after trailing slash, having tried all
> > the possible combinations, but, all the same,
> > nevertheless, the error occured.
> 
> Make sure that you do not use CRLF line terminators in the sparse-checkout
> file.
> 

This is it. Right you are. I've just tried to edit "manually" with notepad 
.git\info\sparse-checkout and found out that there really was a CRLF line 
terminator. After I removed it I managed to succeed in my sparse checkout.

```
