1

Is it necessary to install gitweb to the server or are there other ways to add gitweb with installed gitolite on the server?

VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755

1 Answers1

1

gitolite is just an authorization layer, meaning it comes between your server (ssh or httpd) and git.

You don't need gitweb if you don't need to browse the content of the git repos with a web GUI.

But if you do, and you already have gitolite installed, then you would need to make gitweb call gitolite, and declare a gitweb category (otherwise, your user could see the content of repos they are not supposed to access).

Community
  • 1
  • 1
VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755
  • Where should I add the gitweb.conf.pl and gitweb_config.perl to the server? Does your method involve not installing gitweb to the server, right? Thanks! – user2955550 Nov 06 '13 at 03:24
  • @user2955550 I like to put them in a dedicated folder, with symlinks to the gitweb.cgi script which is part of any git distribution. See https://github.com/VonC/compileEverything/tree/master/gitweb. Then I call the script by referring to that dedicated folder in httpd.conf file: http://stackoverflow.com/a/9783189/6309 (`DocumentRoot /path/to/gitweb` and `DirectoryIndex gitweb.cgi`) – VonC Nov 06 '13 at 06:55
  • I didn't quite get why did you have this line "../usr/local/apps/git/share/gitweb " in: https://github.com/VonC/compileEverything/blob/master/gitweb/gitweb . I kinda actually need a web GUI. What processes are involved in web GUI? Does one need to create it or is it a part of git distribution? Did you use Apache as web server? Thanks! – user2955550 Nov 06 '13 at 08:52
  • @user2955550 gitweb is just a perl script which generates html representation of your repos. You need an http server (I used Apache httpd) to call that script and build your html pages. – VonC Nov 06 '13 at 08:53