# sparse checkout file with windows line endings doesn't work

4 messages from 2013-09-16 to 2013-09-19. Participants: Martin Gregory, Duy Nguyen.
Thread: https://gitlist.dev/t/34943

## Martin Gregory, 2013-09-16 13:20

Subject: sparse checkout file with windows line endings doesn't work
Message-ID: <SDZQSFBTWig9IERCPVQvNjIyNDgyMzQ@IBMLT4>
URL: https://gitlist.dev/e/SDZQSFBTWig9IERCPVQvNjIyNDgyMzQ%40IBMLT4

```
Hi,

Please see  http://pastebin.com/zMXvvXuy

It shows that if the .git/info/sparsecheckout file is in windows format
(windows line ending) then it doesn't work.

Thanks for any advice.

This is git 1.8.3.msysgit.0

Martin

```

## Duy Nguyen, 2013-09-17 11:35

Subject: Re: sparse checkout file with windows line endings doesn't work
Message-ID: <CACsJy8CRoZYWExHMjwG3ZOv=eJ9irq_mM_bM78ss_DssSq7szw@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8CRoZYWExHMjwG3ZOv%3DeJ9irq_mM_bM78ss_DssSq7szw%40mail.gmail.com
In-Reply-To: <SDZQSFBTWig9IERCPVQvNjIyNDgyMzQ@IBMLT4>

```
On Mon, Sep 16, 2013 at 8:20 PM, Martin Gregory
<marting@adelaideinterim.com.au> wrote:
> Hi,
>
> Please see  http://pastebin.com/zMXvvXuy
>
> It shows that if the .git/info/sparsecheckout file is in windows format
> (windows line ending) then it doesn't work.

And it does work for me with CRLF endings (again tested on Linux). Can
you send me your sparse-checkout file? Zip it if needed. I just wanted
to make sure there's no weird visible characters there. If none is
found, then I don't know what causes your problem. Perhaps msys guys
can help.
-- 
Duy

```

## Martin Gregory, 2013-09-17 22:18

Subject: re[2]: sparse checkout file with windows line endings doesn't work
Message-ID: <SDZTMjNKSyNOVFAgPVQvNzQyNzg1MzE@IBMLT4>
URL: https://gitlist.dev/e/SDZTMjNKSyNOVFAgPVQvNzQyNzg1MzE%40IBMLT4
In-Reply-To: <CACsJy8CRoZYWExHMjwG3ZOv=eJ9irq_mM_bM78ss_DssSq7szw@mail.gmail.com>

```
Hi Duy,

Thanks again for taking a look at these two reports.

>>  And it does work for me with CRLF endings (again tested on Linux).

Yes, will do.

I will try, myself, on Linux, as well.  It seems quite conceivable its the
sort of thing that only happens under Windows.

Regards,

Martin

```

## Martin Gregory, 2013-09-19 09:21

Subject: re[2]: sparse checkout file with windows line endings doesn't work
Message-ID: <SDZWVEJZSSNSWDRKPVQvMTg5ODc3NzY1@IBMLT4>
URL: https://gitlist.dev/e/SDZWVEJZSSNSWDRKPVQvMTg5ODc3NzY1%40IBMLT4
In-Reply-To: <CACsJy8CRoZYWExHMjwG3ZOv=eJ9irq_mM_bM78ss_DssSq7szw@mail.gmail.com>

```
Hi Duy,

>>  And it does work for me with CRLF endings (again tested on Linux). Can
>>  you send me your sparse-checkout file? Zip it if needed.

sparse-checkout created with

echo /CONFIGURATION > .git\info\sparse-checkout

on Windows.

Attached file created with

tar cvzf sparsecheckout.tar.gz .git/info/sparse-checkout

in gitbash shell on Windows.

Regards,

Martin


--
Martin Gregory
Senior Consultant, Adelaide Interim
P:   +61 8 7200 5350
M:   +61 402 410 971
F:   +61 8 7200 3725
```
