{"thread":{"id":"44978","subject":"Re: sparse checkout - weird behavior","startedAt":"2017-01-26T03:21:25Z","lastAt":"2017-01-26T11:21:10Z","messageCount":3,"participants":["Paul Hammant","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"310285","messageId":"CA+298Ujx2wH2WnoYiOaWKoneBrF_E5VUXXSMqecGgNLYS0Wemg@mail.gmail.com","threadId":"44978","inReplyTo":null,"subject":"Re: sparse checkout - weird behavior","fromName":"Paul Hammant","fromEmail":"paul@hammant.org","sentAt":"2017-01-26T03:21:19Z","receivedAt":"2017-01-26T03:21:25Z","isPatch":false,"sender":{"key":"paul@hammant.org","avatar":null},"body":"Related bug (maybe the same). Reproduction:\n\n  $ git clone git@github.com:jekyll/jekyll.git --no-checkout\n  Cloning into 'jekyll'...\n  remote: Counting objects: 41331, done.\n  remote: Compressing objects: 100% (5/5), done.\n  remote: Total 41331 (delta 0), reused 0 (delta 0), pack-reused 41326\n  Receiving objects: 100% (41331/41331), 11.91 MiB | 9.15 MiB/s, done.\n  Resolving deltas: 100% (26530/26530), done.\n  $ cd jekyll\n  $ git config core.sparsecheckout true\n  $ echo 'CONDUCT.markdown' > .git/info/sparse-checkout\n  $ echo 'Gemfile' >> .git/info/sparse-checkout\n  $ echo 'Rakefile' >> .git/info/sparse-checkout\n  $ echo 'appveyor.yml' >> .git/info/sparse-checkout\n  $ git checkout --\n  Your branch is up-to-date with 'origin/master'.\n  $ ls\n  CONDUCT.markdown Gemfile Rakefile appveyor.yml lib\n\nI was not expecting to see 'lib' in the resulting file list\n\nI didn't say so before - I'm on a Mac, with a homebrew installed Git 2.11.0\n\n- Paul\n"},{"id":"310292","messageId":"20170126045936.wyleenuwunhrvbn2@sigill.intra.peff.net","threadId":"44978","inReplyTo":"CA+298Ujx2wH2WnoYiOaWKoneBrF_E5VUXXSMqecGgNLYS0Wemg@mail.gmail.com","subject":"Re: sparse checkout - weird behavior","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2017-01-26T04:59:36Z","receivedAt":"2017-01-26T04:59:43Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Jan 25, 2017 at 10:21:19PM -0500, Paul Hammant wrote:\n\n> Related bug (maybe the same). Reproduction:\n> \n>   $ git clone git@github.com:jekyll/jekyll.git --no-checkout\n>   Cloning into 'jekyll'...\n>   remote: Counting objects: 41331, done.\n>   remote: Compressing objects: 100% (5/5), done.\n>   remote: Total 41331 (delta 0), reused 0 (delta 0), pack-reused 41326\n>   Receiving objects: 100% (41331/41331), 11.91 MiB | 9.15 MiB/s, done.\n>   Resolving deltas: 100% (26530/26530), done.\n>   $ cd jekyll\n>   $ git config core.sparsecheckout true\n>   $ echo 'CONDUCT.markdown' > .git/info/sparse-checkout\n>   $ echo 'Gemfile' >> .git/info/sparse-checkout\n>   $ echo 'Rakefile' >> .git/info/sparse-checkout\n>   $ echo 'appveyor.yml' >> .git/info/sparse-checkout\n>   $ git checkout --\n>   Your branch is up-to-date with 'origin/master'.\n>   $ ls\n>   CONDUCT.markdown Gemfile Rakefile appveyor.yml lib\n> \n> I was not expecting to see 'lib' in the resulting file list\n\nYep, I think this is the same problem. Inside lib, you get only\n\"lib/theme_template/Gemfile\", because it matches your unanchored\npattern. Using \"/Gemfile\" in the sparse-checkout file fixes it.\n\n-Peff\n"},{"id":"310303","messageId":"CA+298UhHyXvHZzuuVAz-KYuPJydKY4JksKyBPe+VjsL+zOn74Q@mail.gmail.com","threadId":"44978","inReplyTo":"20170126045936.wyleenuwunhrvbn2@sigill.intra.peff.net","subject":"Re: sparse checkout - weird behavior","fromName":"Paul Hammant","fromEmail":"paul@hammant.org","sentAt":"2017-01-26T11:20:59Z","receivedAt":"2017-01-26T11:21:10Z","isPatch":false,"sender":{"key":"paul@hammant.org","avatar":null},"body":"Well I feel a bit silly. Thanks for responding.\n\nOn Wed, Jan 25, 2017 at 11:59 PM, Jeff King <peff@peff.net> wrote:\n> On Wed, Jan 25, 2017 at 10:21:19PM -0500, Paul Hammant wrote:\n>\n>> Related bug (maybe the same). Reproduction:\n>>\n>>   $ git clone git@github.com:jekyll/jekyll.git --no-checkout\n>>   Cloning into 'jekyll'...\n>>   remote: Counting objects: 41331, done.\n>>   remote: Compressing objects: 100% (5/5), done.\n>>   remote: Total 41331 (delta 0), reused 0 (delta 0), pack-reused 41326\n>>   Receiving objects: 100% (41331/41331), 11.91 MiB | 9.15 MiB/s, done.\n>>   Resolving deltas: 100% (26530/26530), done.\n>>   $ cd jekyll\n>>   $ git config core.sparsecheckout true\n>>   $ echo 'CONDUCT.markdown' > .git/info/sparse-checkout\n>>   $ echo 'Gemfile' >> .git/info/sparse-checkout\n>>   $ echo 'Rakefile' >> .git/info/sparse-checkout\n>>   $ echo 'appveyor.yml' >> .git/info/sparse-checkout\n>>   $ git checkout --\n>>   Your branch is up-to-date with 'origin/master'.\n>>   $ ls\n>>   CONDUCT.markdown Gemfile Rakefile appveyor.yml lib\n>>\n>> I was not expecting to see 'lib' in the resulting file list\n>\n> Yep, I think this is the same problem. Inside lib, you get only\n> \"lib/theme_template/Gemfile\", because it matches your unanchored\n> pattern. Using \"/Gemfile\" in the sparse-checkout file fixes it.\n>\n> -Peff\n"}]}