threads / discuss / 34943

sparse checkout file with windows line endings doesn't work

Subject: sparse checkout file with windows line endings doesn't work

## tl;dr

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

replies: 3people: 2as markdown or json

Martin Gregory· Sep 16, 2013, 13:20 UTC · lore
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· Sep 17, 2013, 11:35 UTC · re: Martin Gregory · lore

Re: sparse checkout file with windows line endings doesn't work

On Mon, Sep 16, 2013 at 8:20 PM, Martin Gregory <marting@adelaideinterim.com.au> wrote:

Show 6 quoted lines
> 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· Sep 17, 2013, 22:18 UTC · re: Duy Nguyen · lore

re[2]: sparse checkout file with windows line endings doesn't work

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· Sep 19, 2013, 09:21 UTC · re: Duy Nguyen · lore

re[2]: sparse checkout file with windows line endings doesn't work

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

← back to recent threads