git add repo

This commit is contained in:
burakerturk
2015-07-16 00:43:28 +03:00
parent 7946a555cf
commit 723ef4239b
14 changed files with 573 additions and 0 deletions
@@ -0,0 +1,19 @@
--- gitweb/gitweb.perl 2007-04-04 11:40:33.000000000 +0300
+++ gitweb/gitweb.perl 2007-04-08 21:30:31.000000000 +0300
@@ -32,8 +32,14 @@
our $GIT = "++GIT_BINDIR++/git";
# absolute fs-path which will be prepended to the project path
-#our $projectroot = "/pub/scm";
-our $projectroot = "++GITWEB_PROJECTROOT++";
+our $projectroot = "/usr/local/scm";
+open(CONF, '/etc/conf.d/gitweb');
+
+while (<CONF>) {
+ do { $projectroot = $1; last } if /^PROJECT_ROOT="([^"]+)"/;
+}
+
+close(CONF);
# target of the home link on top of all pages
our $home_link = $my_uri || "/";