{"thread":{"id":"9245","subject":"git archive ignores .gitignored files?","startedAt":"2007-07-26T17:32:06Z","lastAt":"2007-07-26T17:54:07Z","messageCount":3,"participants":["Brian Downing"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"48718","messageId":"20070726173206.GR21692@lavos.net","threadId":"9245","inReplyTo":null,"subject":"git archive ignores .gitignored files?","fromName":"Brian Downing","fromEmail":"bdowning@lavos.net","sentAt":"2007-07-26T17:32:06Z","receivedAt":"2007-07-26T17:32:06Z","isPatch":false,"sender":{"key":"bdowning@lavos.net","avatar":"https://avatars.githubusercontent.com/u/366426?v=4"},"body":"git archive seems to not output files marked in .gitignore.  I find\nthis behavior a little perplexing, since it does not create an archive\nfrom the working directory, and if something is committed, even if it\nis marked in .gitignore, it should probably wind up in the archive.\n\nThe reason I discovered this is that I'm trying to keep a debian build\nbranch for Git, and the debain/git-daemon directory was mysteriously\nmissing from anything generated with git archive, as \"git-daemon\" is\nin Git's /.gitignore.\n\nIs this intended behavior?  It seems kind of a misfeature to me.\n\n(Of course it's possible /.gitarchive should have \"/git-daemon\" rather\nthan \"git-daemon\"; that's certainly how I will work around the issue.)\n\n-bcd\n"},{"id":"48720","messageId":"20070726173635.GS21692@lavos.net","threadId":"9245","inReplyTo":"20070726173206.GR21692@lavos.net","subject":"Re: git archive ignores .gitignored files?","fromName":"Brian Downing","fromEmail":"bdowning@lavos.net","sentAt":"2007-07-26T17:36:35Z","receivedAt":"2007-07-26T17:36:35Z","isPatch":false,"sender":{"key":"bdowning@lavos.net","avatar":"https://avatars.githubusercontent.com/u/366426?v=4"},"body":"On Thu, Jul 26, 2007 at 12:32:06PM -0500, Brian Downing wrote:\n> git archive seems to not output files marked in .gitignore.\n\nNever mind; it is \"git add\" that ignored the file.  Oops.\n\n-bcd\n"},{"id":"48721","messageId":"20070726175407.GT21692@lavos.net","threadId":"9245","inReplyTo":"20070726173635.GS21692@lavos.net","subject":"Re: git archive ignores .gitignored files?","fromName":"Brian Downing","fromEmail":"bdowning@lavos.net","sentAt":"2007-07-26T17:54:07Z","receivedAt":"2007-07-26T17:54:07Z","isPatch":false,"sender":{"key":"bdowning@lavos.net","avatar":"https://avatars.githubusercontent.com/u/366426?v=4"},"body":"On Thu, Jul 26, 2007 at 12:36:35PM -0500, Brian Downing wrote:\n> On Thu, Jul 26, 2007 at 12:32:06PM -0500, Brian Downing wrote:\n> > git archive seems to not output files marked in .gitignore.\n> \n> Never mind; it is \"git add\" that ignored the file.  Oops.\n\nFor what it's worth, if I do (in the git tree):\n\nmkdir foo\ntouch foo/file\nmkdir foo/git-daemon\ntouch foo/git-daemon/file\n\n\"git add foo\" does not produce any warnings that \"foo/git-daemon\" was\nignored.  If \"foo/file\" does not exist it warns that \"foo\" was not\nadded.\n\n-bcd\n"}]}