/[smecontribs]/rpms/smeserver-git/contribs8/smeserver-git-1.0.0-rewriterules_for_dot_git.patch
ViewVC logotype

Annotation of /rpms/smeserver-git/contribs8/smeserver-git-1.0.0-rewriterules_for_dot_git.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Sat Jun 11 18:37:28 2016 UTC (8 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-git-1_0_0-49_el5_sme, smeserver-git-1_0_0-53_el5_sme, smeserver-git-1_0_0-50_el5_sme, smeserver-git-1_0_0-51_el5_sme, smeserver-git-1_0_0-47_el5_sme, smeserver-git-1_0_0-54_el5_sme, smeserver-git-1_0_0-48_el5_sme, smeserver-git-1_0_0-52_el5_sme, HEAD
Changes since 1.2: +4 -4 lines
* Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-47.sme
- commented out back the rewrite rule on HEAD etc to allow CLI git

1 unnilennium 1.1 diff -Nur smeserver-git-1.1.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29GitRepositories smeserver-git-1.1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29GitRepositories
2     --- smeserver-git-1.1.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29GitRepositories 2015-02-04 00:59:41.000000000 -0500
3     +++ smeserver-git-1.1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29GitRepositories 2016-06-10 10:46:20.974000000 -0400
4 unnilennium 1.2 @@ -304,16 +304,22 @@
5 unnilennium 1.1 $OUT .= " </Location>\n";
6     $OUT .= "\n";
7    
8     - # $OUT .= " # Ensure we can browse the repo with http://server.com/git/repo.git\n";
9     - # $OUT .= " # instead of http://server.com/git?p=repo.git;a=summary.\n";
10     - # $OUT .= " RewriteCond %{REQUEST_FILENAME} !-f\n";
11     - # $OUT .= " RewriteCond %{REQUEST_FILENAME} !-d\n";
12     - # $OUT .= " RewriteRule ^$gitpath\/gitweb.cgi\(\.\*\\.git)\$ $gitpath/gitweb.cgi\$1 [PT]\n";
13     + $OUT .= " # Ensure we can browse the repo with http://server.com/git/repo.git\n";
14     + $OUT .= " # instead of http://server.com/git?p=repo.git;a=summary.\n";
15     + $OUT .= " RewriteCond %{REQUEST_FILENAME} !-f\n";
16     + $OUT .= " RewriteCond %{REQUEST_FILENAME} !-d\n";
17     + $OUT .= " RewriteRule ^$gitpath\/gitweb.cgi\(\.\*\\.git)\$ $gitpath/gitweb.cgi\$1 [PT]\n";
18     +
19     + $OUT .= " RewriteCond %{REQUEST_URI} !=$gitpath/gitweb.*\n";
20     + $OUT .= " RewriteCond %{REQUEST_FILENAME} !-f\n";
21     + $OUT .= " RewriteCond %{REQUEST_FILENAME} !-d\n";
22     + $OUT .= " RewriteRule ^$gitpath(.*\\.git)?\$ $gitpath/gitweb.cgi\$1 [L,PT]\n\n";
23     +
24 unnilennium 1.3 + #$OUT .= " RewriteCond %{REQUEST_URI} !=$gitpath/gitweb.*\n";
25     + #$OUT .= " RewriteCond %{REQUEST_FILENAME} !-f\n";
26     + #$OUT .= " RewriteCond %{REQUEST_FILENAME} !-d\n";
27     + #$OUT .= " RewriteRule ^$gitpath(.*\\.git/(?!/?(HEAD|info|objects|refs)).*)?\$ $gitpath/gitweb.cgi%{REQUEST_URI} [L,PT]\n\n";
28 unnilennium 1.1
29     - # $OUT .= " RewriteCond %{REQUEST_URI} !=$gitpath/gitweb.*\n";
30     - # $OUT .= " RewriteCond %{REQUEST_FILENAME} !-f\n";
31     - # $OUT .= " RewriteCond %{REQUEST_FILENAME} !-d\n";
32     - # $OUT .= " RewriteRule ^/$git_subdir/(.*\\.git/(?!/?(HEAD|info|objects|refs)).*)?\$ $gitpath/gitweb/gitweb.cgi%{REQUEST_URI} [L,PT]\n\n";
33    
34     if( $gitweb_theme eq 'enabled' ) {
35     $OUT .= " # config getprop git GitWebTheme == enabled\n";

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed