{"thread":{"id":"22293","subject":"[BUG] Git 1.6.6 can't clone tags after filter-branch","startedAt":"2010-01-19T22:05:21Z","lastAt":"2010-01-19T22:05:21Z","messageCount":1,"participants":["James Pickens"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"132142","messageId":"885649361001191405x7a4ca1a2i153ad952c7d41ad7@mail.gmail.com","threadId":"22293","inReplyTo":null,"subject":"[BUG] Git 1.6.6 can't clone tags after filter-branch","fromName":"James Pickens","fromEmail":"jepicken@gmail.com","sentAt":"2010-01-19T22:05:21Z","receivedAt":"2010-01-19T22:05:21Z","isPatch":false,"sender":{"key":"jepicken@gmail.com","avatar":null},"body":"Hi,\n\nThis series of commands:\n\n  git init\n  touch file1\n  git add file1\n  git commit -m 1\n  echo >> file1\n  touch file2\n  git add file1 file2\n  git commit -m 2\n  git tag -m 'mytag' mytag\n  git filter-branch --index-filter 'git rm --cached --ignore-unmatch file2' \\\n    --tag-name-filter cat -f -- --all\n  git clone file://$PWD temp\n\nResults in an error from the clone command:\n\n  error: refs/tags/mytag does not point to a valid object!\n\nThe clone command exits with zero status, but the new repo doesn't contain\nthe tag 'mytag'.\n\nVersion 1.6.2.5 did not have this problem.  It bisects to:\n\n  commit 5bdc32d3e50d8335c65e136e6b5234c5dd92a7a9\n  Author: Nicolas Pitre <nico@fluxnic.net>\n  Date:   Fri Sep 25 23:54:42 2009 -0400\n\n      make 'git clone' ask the remote only for objects it cares about\n\nJames\n"}]}