Opened 9 years ago

Closed 9 years ago

#15 closed task (fixed)

Establish HTTP redirect to GitLab for /gitweb

Reported by: ehuelsmann Owned by: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: Cc:
Parent Tickets: 12

Description


Change History (4)

comment:1 Changed 9 years ago by ehuelsmann

gitweb URL structure:

/gitweb/

--> lists the repository listing

/gitweb/?...

parameters:

  1. p=<relative-path>; the project/repository to be viewed
  2. a=<summary|tree|commitdiff(_plain)?|shortlog|log|commit|patch|search|blobdiff(_plain)?|blob|blame|history>; type of page content to be returned
  3. h=<commit-hash>
  4. f=<within-repo-path(file-or-directory)>; relevant for path/blob based requests
  5. hb=<hash-of-?>
  6. hp=<hash-of-?>
  7. hpb=<hash-of-?>
  8. ds=sidebyside; side-by-side view instead of uni-diff (for diff output)

comment:2 Changed 9 years ago by ehuelsmann

Progress: I've implemented a gitweb redirect map script in Perl (I know, I know); it's deployed as /usr/local/bin/gitweb-rewritemap, but needs to be implemented in the Apache config.

I'd propose like this:

   RewriteMap gitwebmap prg:/usr/local/bin/gitweb-rewritemap

And the following rewrite rules:

   RewriteRule /gitweb/? https://gitlab.common-lisp.net/explore/projects
   RewriteRule /gitweb/\?(.*)  ${gitwebmap:$1}

comment:3 Changed 9 years ago by ehuelsmann

This ticket is sufficiently handled. Execution is all that remains.

comment:4 Changed 9 years ago by ehuelsmann

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.