{"thread":{"id":"9602","subject":"hiding a certain file from gitweb","startedAt":"2007-08-21T19:02:25Z","lastAt":"2007-08-21T22:40:17Z","messageCount":3,"participants":["martin f krafft","David Kastrup"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"51194","messageId":"20070821190225.GA7133@piper.oerlikon.madduck.net","threadId":"9602","inReplyTo":null,"subject":"hiding a certain file from gitweb","fromName":"martin f krafft","fromEmail":"madduck@madduck.net","sentAt":"2007-08-21T19:02:25Z","receivedAt":"2007-08-21T19:02:25Z","isPatch":false,"sender":{"key":"madduck@madduck.net","avatar":null},"body":"Dear list,\n\none of my colleagues checked a file with thousands of email\naddresses into git and pushed the commit, so now the file is on\ngitweb. This was quite a while ago and we have over 500 commits and\nseveral branches between now and then. We want to open our gitweb to\nthe public, but to do that, I need to somehow ensure that the file's\ncontent is not available via gitweb, or else the spammers will have\na feast. Is it possible to somehow hide the file from gitweb but\nkeep it in the repo?\n\nAlternatively, would a patch against gitweb be considered, which\nobfuscated email addresses? Or would that interfere with the world\n— I note that e.g. ikiwiki's git configuration requires you to\nspecify the gitweb URL (and not a repo URL).\n\nCheers,\n\n-- \nmartin;              (greetings from the heart of the sun.)\n  \\____ echo mailto: !#^.\"<*>\"|tr \"<*> mailto:\" net@madduck\n \n\"common sense is the collection of prejudices\n acquired by age eighteen.\"\n                                                    -- albert einstein\n \nspamtraps: madduck.bogus@madduck.net\n"},{"id":"51206","messageId":"85veb8mubx.fsf@lola.goethe.zz","threadId":"9602","inReplyTo":"20070821190225.GA7133@piper.oerlikon.madduck.net","subject":"Re: hiding a certain file from gitweb","fromName":"David Kastrup","fromEmail":"dak@gnu.org","sentAt":"2007-08-21T21:49:38Z","receivedAt":"2007-08-21T21:49:38Z","isPatch":false,"sender":{"key":"dak@gnu.org","avatar":"https://avatars.githubusercontent.com/u/52141349?v=4"},"body":"martin f krafft <madduck@madduck.net> writes:\n\n> Dear list,\n>\n> one of my colleagues checked a file with thousands of email\n> addresses into git and pushed the commit, so now the file is on\n> gitweb. This was quite a while ago and we have over 500 commits and\n> several branches between now and then.\n\nThis sounds like you would be ok with the file never having been\ncommitted.  Use git-filter-branch for that.\n\n-- \nDavid Kastrup, Kriemhildstr. 15, 44793 Bochum\n"},{"id":"51209","messageId":"20070821224017.GA20263@piper.oerlikon.madduck.net","threadId":"9602","inReplyTo":"85veb8mubx.fsf@lola.goethe.zz","subject":"Re: hiding a certain file from gitweb","fromName":"martin f krafft","fromEmail":"madduck@madduck.net","sentAt":"2007-08-21T22:40:17Z","receivedAt":"2007-08-21T22:40:17Z","isPatch":false,"sender":{"key":"madduck@madduck.net","avatar":null},"body":"also sprach David Kastrup <dak@gnu.org> [2007.08.21.2349 +0200]:\n> > one of my colleagues checked a file with thousands of email\n> > addresses into git and pushed the commit, so now the file is on\n> > gitweb. This was quite a while ago and we have over 500 commits and\n> > several branches between now and then.\n> \n> This sounds like you would be ok with the file never having been\n> committed.  Use git-filter-branch for that.\n\nThis is awesome functionality — apart from the fact that I'd like to\nkeep the file in the repo, just not on gitweb. But we already\nfigured out a way to deal with the situation internally.\n\nThanks for showing me this tool.\n\n-- \nmartin;              (greetings from the heart of the sun.)\n  \\____ echo mailto: !#^.\"<*>\"|tr \"<*> mailto:\" net@madduck\n \n\"getting a scsi chain working is perfectly simple if you remember that\n there must be exactly three terminations: one on one end of the\n cable, one on the far end, and the goat, terminated over the scsi\n chain with a silver-handled knife whilst burning *black* candles.\"\n                                                     -- anthony deboer\n \nspamtraps: madduck.bogus@madduck.net\n"}]}