{"thread":{"id":"35812","subject":"\"Sparse checkout leaves no entry on working directory\" all the time on Windows 7 on Git 1.8.5.2.msysgit.0","startedAt":"2014-02-06T11:54:04Z","lastAt":"2014-02-06T19:56:12Z","messageCount":4,"participants":["konstunn@ngs.ru","Johannes Sixt","Duy Nguyen","Constantine Gorbunov"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"234360","messageId":"web-57771132@mx45.intranet.ru","threadId":"35812","inReplyTo":null,"subject":"\"Sparse checkout leaves no entry on working directory\" all the time on Windows 7 on Git 1.8.5.2.msysgit.0","fromName":"","fromEmail":"konstunn@ngs.ru","sentAt":"2014-02-06T11:54:04Z","receivedAt":"2014-02-06T11:54:04Z","isPatch":false,"sender":{"key":"konstunn@ngs.ru","avatar":null},"body":"Greetings.\n\nI've tried to perform a single simple task to fetch data\nfrom the linux-next integration testing tree repo and\nsparse checkout the \"drivers/staging/usbip/\" directory.\n\nI managed to perform it successfully under Linux with Git\n1.7.1.\n\nBut I always failed to perform checkout under Windows 7\nwith Git 1.8.5.2.msysgit.0 facing the following error:\n\"Sparse checkout leaves no entry on working directory\".\n\nUnfortunately, I haven't tried that under Linux with Git\n1.8.5.2. So, don't know if there is the same problem.\n\nHowever I typed the checkout directory in file\n.git/info/sparse-checkout by using different formats with\nand without the leading and the trailing slashes, with and\nwithout asterisk after trailing slash, having tried all\nthe possible combinations, but, all the same,\nnevertheless, the error occured.\n\nOn Linux I stored the checkout directory in\nsparse-checkout file in the following way:\n\"drivers/staging/usbip/\". And everything was fine under\nLinux, but not under Windows.\n\nHowever, I don't, of course, if the format of this\ndirectory really matters.\nMay be the Git install on Windows 7 specific configuration\nis the reason?\n\nCould you, please, tell me, what might be wrong?\nAm I doing something wrong or it's a bug?\n\nBest Regards,\nConstantine Gorbunov\n"},{"id":"234364","messageId":"52F38C1D.709@viscovery.net","threadId":"35812","inReplyTo":"web-57771132@mx45.intranet.ru","subject":"Re: \"Sparse checkout leaves no entry on working directory\" all the time on Windows 7 on Git 1.8.5.2.msysgit.0","fromName":"Johannes Sixt","fromEmail":"j.sixt@viscovery.net","sentAt":"2014-02-06T13:20:29Z","receivedAt":"2014-02-06T13:20:29Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 2/6/2014 12:54, schrieb konstunn@ngs.ru:\n> However I typed the checkout directory in file\n> ..git/info/sparse-checkout by using different formats with\n> and without the leading and the trailing slashes, with and\n> without asterisk after trailing slash, having tried all\n> the possible combinations, but, all the same,\n> nevertheless, the error occured.\n\nMake sure that you do not use CRLF line terminators in the sparse-checkout\nfile.\n\n-- Hannes\n"},{"id":"234365","messageId":"CACsJy8CG=d4jdQMW0tddrqUPCa+72yZe6i7LDBisWNo6KPF03g@mail.gmail.com","threadId":"35812","inReplyTo":"52F38C1D.709@viscovery.net","subject":"Re: \"Sparse checkout leaves no entry on working directory\" all the time on Windows 7 on Git 1.8.5.2.msysgit.0","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2014-02-06T13:30:16Z","receivedAt":"2014-02-06T13:30:16Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Thu, Feb 6, 2014 at 8:20 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:\n> Am 2/6/2014 12:54, schrieb konstunn@ngs.ru:\n>> However I typed the checkout directory in file\n>> ..git/info/sparse-checkout by using different formats with\n>> and without the leading and the trailing slashes, with and\n>> without asterisk after trailing slash, having tried all\n>> the possible combinations, but, all the same,\n>> nevertheless, the error occured.\n>\n> Make sure that you do not use CRLF line terminators in the sparse-checkout\n> file.\n\nI suspected the same thing. But it looks like we do trim CRLF. Another\noption is the file is encoded in utf-16 or some encoding which ascii\nis not a subset of.\n-- \nDuy\n"},{"id":"234433","messageId":"loom.20140206T205117-635@post.gmane.org","threadId":"35812","inReplyTo":"52F38C1D.709@viscovery.net","subject":"Re:","fromName":"Constantine Gorbunov","fromEmail":"konstunn@ngs.ru","sentAt":"2014-02-06T19:56:12Z","receivedAt":"2014-02-06T19:56:12Z","isPatch":false,"sender":{"key":"konstunn@ngs.ru","avatar":null},"body":"Johannes Sixt <j.sixt <at> viscovery.net> writes:\n\n> \n> Am 2/6/2014 12:54, schrieb konstunn <at> ngs.ru:\n> > However I typed the checkout directory in file\n> > ..git/info/sparse-checkout by using different formats with\n> > and without the leading and the trailing slashes, with and\n> > without asterisk after trailing slash, having tried all\n> > the possible combinations, but, all the same,\n> > nevertheless, the error occured.\n> \n> Make sure that you do not use CRLF line terminators in the sparse-checkout\n> file.\n> \n\nThis is it. Right you are. I've just tried to edit \"manually\" with notepad \n.git\\info\\sparse-checkout and found out that there really was a CRLF line \nterminator. After I removed it I managed to succeed in my sparse checkout.\n"}]}