{"thread":{"id":"34029","subject":"git archive --worktree-attributes doesn't exclude .gitattributes anymore","startedAt":"2013-06-04T22:18:59Z","lastAt":"2013-06-05T07:22:44Z","messageCount":6,"participants":["Gianfranco Costamagna","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"219422","messageId":"1370384339.31882.YahooMailNeo@web172702.mail.ir2.yahoo.com","threadId":"34029","inReplyTo":null,"subject":"git archive --worktree-attributes doesn't exclude .gitattributes anymore","fromName":"Gianfranco Costamagna","fromEmail":"costamagnagianfranco@yahoo.it","sentAt":"2013-06-04T22:18:59Z","receivedAt":"2013-06-04T22:18:59Z","isPatch":false,"sender":{"key":"costamagnagianfranco@yahoo.it","avatar":"https://gravatar.com/avatar/9cc282f7aa3a8dbab21b673829e9a9c80946ce62fd9f2a5533c644717e321efa?d=mp&s=160"},"body":"git version 1.8.1.2\n(please cc me, I'm not subscribed to this list)\n\n\nHi Developers, I write here because since my ubuntu update (quantal to raring)\nand git update from 1.7.10.4-1ubuntu1 to 1.8.1.2\n\nmy export script doesn't work anymore.\n\nI tried to put .gitattributes or .git/info/attributes, the file is the following\nhttp://pastebin.com/irngA1L8\n\nthe git is\ngit clone http://boinc.berkeley.edu/git/boinc-v2.git\n\nand the command is\n\ngit archive --prefix boinc-7.1.7+dfsg/ --format tgz -o ../boinc_7.1.7+dfsg.orig.tar.gz -9  client_release/7.1/7.1.7\n\nThe archive gets created, but every file is inside, no exclusions at all.\n\nI suspect a regression between git 1.7 and 1.8\n\nthanks for your time\n\n\nGianfranco\n"},{"id":"219423","messageId":"1370384666.57411.YahooMailNeo@web172701.mail.ir2.yahoo.com","threadId":"34029","inReplyTo":"1370384339.31882.YahooMailNeo@web172702.mail.ir2.yahoo.com","subject":"I: git archive --worktree-attributes doesn't exclude .gitattributes anymore","fromName":"Gianfranco Costamagna","fromEmail":"costamagnagianfranco@yahoo.it","sentAt":"2013-06-04T22:24:26Z","receivedAt":"2013-06-04T22:24:26Z","isPatch":false,"sender":{"key":"costamagnagianfranco@yahoo.it","avatar":"https://gravatar.com/avatar/9cc282f7aa3a8dbab21b673829e9a9c80946ce62fd9f2a5533c644717e321efa?d=mp&s=160"},"body":"Forgot to mention, also this command doesn't work\n\n\ngit archive --worktree-attributes  -v --format tgz -o ../boinc_7.1.7+dfsg.orig.tar.gz -9 --prefix boinc-7.1.7+dfsg/ client_release/7.1/7.1.7\n\n\nGianfranco\n\n\n\n----- Messaggio inoltrato -----\n> Da: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>\n> A: \"git@vger.kernel.org\" <git@vger.kernel.org>\n> Cc: \n> Inviato: Mercoledì 5 Giugno 2013 0:18\n> Oggetto: git archive --worktree-attributes doesn't exclude .gitattributes anymore\n> \n>g it version 1.8.1.2\n> (please cc me, I'm not subscribed to this list)\n> \n> \n> Hi Developers, I write here because since my ubuntu update (quantal to raring)\n> and git update from 1.7.10.4-1ubuntu1 to 1.8.1.2\n> \n> my export script doesn't work anymore.\n> \n> I tried to put .gitattributes or .git/info/attributes, the file is the following\n> http://pastebin.com/irngA1L8\n> \n> the git is\n> git clone http://boinc.berkeley.edu/git/boinc-v2.git\n> \n> and the command is\n> \n> git archive --prefix boinc-7.1.7+dfsg/ --format tgz -o \n> ../boinc_7.1.7+dfsg.orig.tar.gz -9  client_release/7.1/7.1.7\n> \n> The archive gets created, but every file is inside, no exclusions at all.\n> \n> I suspect a regression between git 1.7 and 1.8\n> \n> thanks for your time\n> \n> \n> Gianfranco\n> \n"},{"id":"219429","messageId":"20130605031349.GA6727@sigill.intra.peff.net","threadId":"34029","inReplyTo":"1370384339.31882.YahooMailNeo@web172702.mail.ir2.yahoo.com","subject":"Re: git archive --worktree-attributes doesn't exclude .gitattributes anymore","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2013-06-05T03:13:49Z","receivedAt":"2013-06-05T03:13:49Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Jun 04, 2013 at 11:18:59PM +0100, Gianfranco Costamagna wrote:\n\n> git version 1.8.1.2\n> [...]\n> I tried to put .gitattributes or .git/info/attributes, the file is the following\n> http://pastebin.com/irngA1L8\n> [...]\n> The archive gets created, but every file is inside, no exclusions at all.\n> \n> I suspect a regression between git 1.7 and 1.8\n\nYes, there was a regression with matching directory names in\ngitattributes in v1.8.1.1. The regression is fixed in v1.8.1.6 and\nabove.\n\nIf upgrading is too hard, I think you can work around it by putting\n\"win_build/\" instead of \"win_build\" in your .gitattributes (after\nv1.8.1.6, both should work for your case).\n\n-Peff\n"},{"id":"219439","messageId":"20130605071055.GB14427@sigill.intra.peff.net","threadId":"34029","inReplyTo":"1370412601.77980.YahooMailAndroidMobile@web172702.mail.ir2.yahoo.com","subject":"Re: git archive --worktree-attributes doesn't exclude .gitattributes anymore","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2013-06-05T07:10:55Z","receivedAt":"2013-06-05T07:10:55Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Jun 05, 2013 at 07:10:01AM +0100, Gianfranco Costamagna wrote:\n\n> Just a question, is it possible to add a new test for handling this\n> kind of regressions?\n\nYes, I added one in commit efa5f825.\n\n> And second, is it possible to have a patch for this problem? I'll be\n> glad to backport in debian, or to take care of updating the whole git\n> package (it is already in experimental BTW)\n\nThe fix took a fair bit of refactoring; it's in commits\n9db9eec..efa5f825. You can either cherry-pick that range, or just use\n\"git diff\" to generate a patch.\n\nHowever, for Debian, I don't see much point. Everything up through\nunstable does not have the bug (it is all 1.7.10.x or older), and the\nversion in experimental is already 1.8.3. So as far as I can tell, no\nDebian release is currently shipping a buggy version.\n\n-Peff\n"},{"id":"219441","messageId":"1370416848.58042.YahooMailNeo@web172702.mail.ir2.yahoo.com","threadId":"34029","inReplyTo":"20130605071055.GB14427@sigill.intra.peff.net","subject":"Re: git archive --worktree-attributes doesn't exclude .gitattributes anymore","fromName":"Gianfranco Costamagna","fromEmail":"costamagnagianfranco@yahoo.it","sentAt":"2013-06-05T07:20:48Z","receivedAt":"2013-06-05T07:20:48Z","isPatch":false,"sender":{"key":"costamagnagianfranco@yahoo.it","avatar":"https://gravatar.com/avatar/9cc282f7aa3a8dbab21b673829e9a9c80946ce62fd9f2a5533c644717e321efa?d=mp&s=160"},"body":"OH, I see...\n\nJust ubuntu is syncing from debian experimental...\nhttps://launchpad.net/ubuntu/+source/git\n\n\n\n\nGianfranco\n\n\n\n>________________________________\n> Da: Jeff King <peff@peff.net>\n>A: Gianfranco Costamagna <costamagnagianfranco@yahoo.it> \n>Cc: \"git@vger.kernel.org\" <git@vger.kernel.org> \n>Inviato: Mercoledì 5 Giugno 2013 9:10\n>Oggetto: Re: git archive --worktree-attributes doesn't exclude .gitattributes anymore\n> \n>\n>On Wed, Jun 05, 2013 at 07:10:01AM +0100, Gianfranco Costamagna wrote:\n>\n>> Just a question, is it possible to add a new test for handling this\n>> kind of regressions?\n>\n>Yes, I added one in commit efa5f825.\n>\n>> And second, is it possible to have a patch for this problem? I'll be\n>> glad to backport in debian, or to take care of updating the whole git\n>> package (it is already in experimental BTW)\n>\n>The fix took a fair bit of refactoring; it's in commits\n>9db9eec..efa5f825. You can either cherry-pick that range, or just use\n>\"git diff\" to generate a patch.\n>\n>However, for Debian, I don't see much point. Everything up through\n>unstable does not have the bug (it is all 1.7.10.x or older), and the\n>version in experimental is already 1.8.3. So as far as I can tell, no\n>Debian release is currently shipping a buggy version.\n>\n>-Peff\n>\n>\n> \n"},{"id":"219442","messageId":"1370416964.91753.YahooMailNeo@web172706.mail.ir2.yahoo.com","threadId":"34029","inReplyTo":"1370412601.77980.YahooMailAndroidMobile@web172702.mail.ir2.yahoo.com","subject":"I: git archive --worktree-attributes doesn't exclude .gitattributes anymore","fromName":"Gianfranco Costamagna","fromEmail":"costamagnagianfranco@yahoo.it","sentAt":"2013-06-05T07:22:44Z","receivedAt":"2013-06-05T07:22:44Z","isPatch":false,"sender":{"key":"costamagnagianfranco@yahoo.it","avatar":"https://gravatar.com/avatar/9cc282f7aa3a8dbab21b673829e9a9c80946ce62fd9f2a5533c644717e321efa?d=mp&s=160"},"body":"Sending again, the list strips html\n\n>Oh many thanks for your answer Jeff!\n>I was wondering about a fault in my side!\n>I was already building 1.8.3 when I sent the first mail...\n>Anyway\n your software has a bunch of tests that make compilation a little slow \n(and no, I don't want to disable them, they are there for a really good \nreason).\n>Just a question, is it possible to add a new test for handling this kind of regressions?\n>And\n second, is it possible to have a patch for this problem? I'll be glad \nto backport in debian, or to take care of updating the whole git package\n (it is already in experimental BTW)\n>Thanks\n>G.\n\n\n----- Messaggio inoltrato -----\n>Da: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>\n>A: \"peff@peff.net\" <peff@peff.net>; \"git@vger.kernel.org\" <git@vger.kernel.org> \n>Inviato: Mercoledì 5 Giugno 2013 8:10\n>Oggetto: Re: git archive --worktree-attributes doesn't exclude .gitattributes  anymore\n> \n>\n>\n>Oh many thanks for your answer Jeff!\n>I was wondering about a fault in my side!\n>I was already building 1.8.3 when I sent the first mail...\n>Anyway your software has a bunch of tests that make compilation a little slow (and no, I don't want to disable them, they are there for a really good reason).\n>Just a question, is it possible to add a new test for handling this kind of regressions?\n>And second, is it possible to have a patch for this problem? I'll be glad to backport in debian, or to take care of updating the whole git package (it is already in experimental BTW)\n>Thanks\n>G.\n>Sent from Yahoo! Mail on Android \n>\n>\n>\n>________________________________\n> From:  Jeff King <peff@peff.net>; \n>To:  Gianfranco Costamagna <costamagnagianfranco@yahoo.it>; \n>Cc:  git@vger.kernel.org <git@vger.kernel.org>; \n>Subject:  Re: git archive --worktree-attributes doesn't exclude .gitattributes anymore \n>Sent:  Wed, Jun 5, 2013 3:13:49 AM \n>\n>\n>On Tue, Jun 04, 2013 at 11:18:59PM +0100, Gianfranco Costamagna wrote:\n>\n>> git version 1.8.1.2\n>> [...]\n>> I tried to put .gitattributes or .git/info/attributes, the file is the following\n>> http://pastebin.com/irngA1L8\n>> [...]\n>> The archive gets created, but every file is inside, no exclusions at all.\n>> \n>> I suspect a regression between git 1.7 and 1.8\n>\n>Yes, there was a regression with matching directory names in\n>gitattributes in v1.8.1.1. The regression is fixed in v1.8.1.6 and\n>above.\n>\n>If upgrading is too hard, I think you can work around it by putting\n>\"win_build/\" instead of \"win_build\" in your .gitattributes (after\n>v1.8.1.6, both should work for your case).\n>\n>-Peff\n> \n>\n> \n"}]}