On Wed, 27 Apr 2011 16:13:39 +0200
Harald Welte <lafo...@gnumonks.org> wrote:

> > There are also very few references to gitweb URLs in mailing list
> > discussions like in [2] and I think it is not a big deal either to break
> > those links for now.
> 
> I agree, we can ignore those, or alternatively if somebody has an interest
> in putting rewrite rules in place...
>  

OK, that's what I did so far:

  1. Make cgit accessible at the root of the URL, getting rid of
     the /cgit/ subdir

  2. Adjust the rewrite rules from [1] to fit our needs:
     - fixed some copy and paste typos
     - added support for gitweb clean URLs
     - changed project name detection, as we have project names with
       dots in them and the previous regex was failing for them, however
       we now assume that project names end in \.git in the gitweb
       setup.
    I am going to write a short blog post about that.

  3. Put the URL rewriting rules in place, they now redirect to
     cgit.openezx.org, but that can be easily changed if we decide to
     have just git.openezx.org.
     Memento: if we do that, change the redirection code to 301 so the
     search engine will move the addresses and the rewrite rules can
     go away altogether eventually; the git-notify hook would really
     need to be changed then...

I verified that:
  - The URLs in the commit logs like in [2] are correctly resolved
  - Most of the URLs from a google search [3] are working
  - Cloning over http is OK from http://cgit. but not from http://git.
    but cgit does not even expose the addresses for that.

TL;DR gitweb is now inactive and it could be removed, I just want to
check how cgit interacts with gitosis about the projects list before
ditching gitweb.

Let me know if you experience any problem.
The rewrite rules could be factored, merged, made stricter, but
they're good enough for us I think. 

Regards,
   Antonio

[1] http://www.clearchain.com/blog/posts/cgit-upgrade-gitweb-retired

[2]
http://lists.openezx.org/pipermail/openezx-svnlog/2011-April/001803.html

[3] http://www.google.it/search?q=site%3Agit.openezx.org

-- 
Antonio Ospite
http://ao2.it

PGP public key ID: 0x4553B001

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?

Attachment: pgpRG1gr7B2qQ.pgp
Description: PGP signature

Reply via email to