threads / discuss / 9602

hiding a certain file from gitweb

Subject: hiding a certain file from gitweb

## tl;dr

3 messages between Aug 21, 2007 and Aug 21, 2007.

replies: 2people: 2as markdown or json

martin f krafft· Aug 21, 2007, 19:02 UTC · lore
Dear list,

one of my colleagues checked a file with thousands of email addresses into git and pushed the commit, so now the file is on gitweb. This was quite a while ago and we have over 500 commits and several branches between now and then. We want to open our gitweb to the public, but to do that, I need to somehow ensure that the file's content is not available via gitweb, or else the spammers will have a feast. Is it possible to somehow hide the file from gitweb but keep it in the repo?

Alternatively, would a patch against gitweb be considered, which obfuscated email addresses? Or would that interfere with the world — I note that e.g. ikiwiki's git configuration requires you to specify the gitweb URL (and not a repo URL).

Cheers,
-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
"common sense is the collection of prejudices
 acquired by age eighteen."
                                                    -- albert einstein
 
spamtraps: madduck.bogus@madduck.net
David Kastrup· Aug 21, 2007, 21:49 UTC · re: martin f krafft · lore

Re: hiding a certain file from gitweb

martin f krafft <madduck@madduck.net> writes:
Show 6 quoted lines
> Dear list,
>
> one of my colleagues checked a file with thousands of email
> addresses into git and pushed the commit, so now the file is on
> gitweb. This was quite a while ago and we have over 500 commits and
> several branches between now and then.

This sounds like you would be ok with the file never having been committed. Use git-filter-branch for that.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
martin f krafft· Aug 21, 2007, 22:40 UTC · re: David Kastrup · lore

Re: hiding a certain file from gitweb

also sprach David Kastrup <dak@gnu.org> [2007.08.21.2349 +0200]:
Show 7 quoted lines
> > one of my colleagues checked a file with thousands of email
> > addresses into git and pushed the commit, so now the file is on
> > gitweb. This was quite a while ago and we have over 500 commits and
> > several branches between now and then.
> 
> This sounds like you would be ok with the file never having been
> committed.  Use git-filter-branch for that.

This is awesome functionality — apart from the fact that I'd like to keep the file in the repo, just not on gitweb. But we already figured out a way to deal with the situation internally.

Thanks for showing me this tool.
-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
"getting a scsi chain working is perfectly simple if you remember that
 there must be exactly three terminations: one on one end of the
 cable, one on the far end, and the goat, terminated over the scsi
 chain with a silver-handled knife whilst burning *black* candles."
                                                     -- anthony deboer
 
spamtraps: madduck.bogus@madduck.net

← back to recent threads