<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/git-instaweb.sh, branch v2.26.0-rc2</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v2.26.0-rc2</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v2.26.0-rc2'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2019-01-28T18:57:44Z</updated>
<entry>
<title>git-instaweb: add Python builtin http.server support</title>
<updated>2019-01-28T18:57:44Z</updated>
<author>
<name>Arti Zirk</name>
<email>arti.zirk@gmail.com</email>
</author>
<published>2019-01-28T13:24:59Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=2eb14bb2d41b27d23120206bbe3d409a83cf042f'/>
<id>urn:sha1:2eb14bb2d41b27d23120206bbe3d409a83cf042f</id>
<content type='text'>
With this patch it is possible to launch git-instaweb by using
Python http.server CGI handler via `-d python` option.

git-instaweb generates a small wrapper around the http.server
(in GIT_DIR/gitweb/) that address a limitation of the CGI handler
where CGI scripts have to be in a cgi-bin subdirectory and
directory index can't be easily changed. To keep the implementation
small, gitweb is running on url `/cgi-bin/gitweb.cgi` and an automatic
redirection is done when opening `/`.

The generated wrapper is compatible with both Python 2 and 3.

Python is by default installed on most modern Linux distributions
which enables running `git instaweb -d python` without needing
anything else.

Signed-off-by: Arti Zirk &lt;arti.zirk@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-instaweb: fix apache2 config with apache &gt;= 2.4</title>
<updated>2018-08-08T15:30:07Z</updated>
<author>
<name>Sebastian Kisela</name>
<email>skisela@redhat.com</email>
</author>
<published>2018-08-07T07:25:48Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=757b12494bd3e4c6cbc2fd081d60ed41b60208ae'/>
<id>urn:sha1:757b12494bd3e4c6cbc2fd081d60ed41b60208ae</id>
<content type='text'>
The generated apache2 config fails with apache &gt;= 2.4.  The error log
states:

    AH00136: Server MUST relinquish startup privileges before accepting
    connections.  Please ensure mod_unixd or other system security
    module is loaded.
    AH00016: Configuration Failed

Fix this by loading the unixd module.  This works with older httpd as
well, so no IfVersion conditional is needed.  (Tested with httpd-2.2.15
on CentOS-6.)

Written with assistance of Todd Zullinger &lt;tmz@pobox.com&gt;

Signed-off-by: Sebastian Kisela &lt;skisela@redhat.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-instaweb: support Fedora/Red Hat apache module path</title>
<updated>2018-08-08T15:29:45Z</updated>
<author>
<name>Sebastian Kisela</name>
<email>skisela@redhat.com</email>
</author>
<published>2018-08-08T08:49:18Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=1976311aa285549599e5a451d7ad72b55a2b60e2'/>
<id>urn:sha1:1976311aa285549599e5a451d7ad72b55a2b60e2</id>
<content type='text'>
On Fedora-derived systems, the apache httpd package installs modules
under /usr/lib{,64}/httpd/modules, depending on whether the system is
32- or 64-bit.  A symlink from /etc/httpd/modules is created which
points to the proper module path.  Use it to support apache on Fedora,
CentOS, and Red Hat systems.

Written with assistance of Todd Zullinger &lt;tmz@pobox.com&gt; and
Junio C Hamano &lt;gitster@pobox.com&gt;.

Signed-off-by: Sebastian Kisela &lt;skisela@redhat.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-instaweb: use @SHELL_PATH@ instead of /bin/sh</title>
<updated>2015-03-10T22:10:35Z</updated>
<author>
<name>Kyle J. McKay</name>
<email>mackyle@gmail.com</email>
</author>
<published>2015-03-08T05:05:38Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=ff7a9dc2c503360190650d604dbdbc293d99b765'/>
<id>urn:sha1:ff7a9dc2c503360190650d604dbdbc293d99b765</id>
<content type='text'>
If the user has configured a value for SHELL_PATH then
be sure to use it for any generated scripts instead of
hard-coding /bin/sh.

The first line of the script is handled specially, but
the embedded #!/bin/sh line in the here document will
not be automatically updated unless it uses @SHELL_PATH@.

Signed-off-by: Kyle J. McKay &lt;mackyle@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-instaweb: allow running in a working tree subdirectory</title>
<updated>2015-03-10T22:10:33Z</updated>
<author>
<name>Kyle J. McKay</name>
<email>mackyle@gmail.com</email>
</author>
<published>2015-03-08T05:04:09Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=130e475e1f8aa72e48dde43159a28232ff31fee6'/>
<id>urn:sha1:130e475e1f8aa72e48dde43159a28232ff31fee6</id>
<content type='text'>
Signed-off-by: Kyle J. McKay &lt;mackyle@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-instaweb: add support for Apache 2.4</title>
<updated>2014-05-27T19:57:19Z</updated>
<author>
<name>Jonathan McCrohan</name>
<email>jmccrohan@gmail.com</email>
</author>
<published>2014-05-27T01:18:10Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=f8ee1f02da6182a3242306a52c5ae7a39547b37e'/>
<id>urn:sha1:f8ee1f02da6182a3242306a52c5ae7a39547b37e</id>
<content type='text'>
Detect available Apache MPMs and use first available according to
following order of precedence:
mpm_event
mpm_prefork
mpm_worker

Add authz_core module if available to avoid HTTP Error 500 errors.

Signed-off-by: Jonathan McCrohan &lt;jmccrohan@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-sh-setup.sh: add variable to use the stuck-long mode</title>
<updated>2014-02-03T20:11:10Z</updated>
<author>
<name>Nicolas Vigier</name>
<email>boklm@mars-attacks.org</email>
</author>
<published>2014-02-01T02:17:59Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=51ba8ce372ad9fcab04a013252b819625c44770a'/>
<id>urn:sha1:51ba8ce372ad9fcab04a013252b819625c44770a</id>
<content type='text'>
If the variable $OPTIONS_STUCKLONG is not empty, then rev-parse
option parsing is done in --stuck-long mode.

Signed-off-by: Nicolas Vigier &lt;boklm@mars-attacks.org&gt;
Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>use @@PERL@@ in built scripts</title>
<updated>2013-10-29T19:41:17Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2013-10-29T01:19:59Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=fcb06a8d54e29d12bb8160b978ce78331c95a1bf'/>
<id>urn:sha1:fcb06a8d54e29d12bb8160b978ce78331c95a1bf</id>
<content type='text'>
Several of the built shell commands invoke a bare "perl" to
perform some one-liners. This will use the first perl in the
PATH rather than the one specified by the user's SHELL_PATH.
We are not asking these perl invocations to do anything
exotic, so typically any old system perl will do; however,
in some cases the system perl may have unexpected behavior
(e.g., by handling line endings differently). We should err
on the side of using the perl the user pointed us to.

The downside of this is that on systems with a sane perl
setup, we no longer find the perl at runtime, but instead
point to a static perl (like /usr/bin/perl). That means we
will not handle somebody moving perl without rebuilding git,
whereas before we tracked it just fine. This is probably not
a big deal, though, as the built perl scripts already
suffered from this.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-instaweb: Check that correct config file exists for (re)start</title>
<updated>2011-06-27T09:11:41Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2011-06-23T21:01:03Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=5ad6d387f19d9dd28b323f5cfea8663cb7b74617'/>
<id>urn:sha1:5ad6d387f19d9dd28b323f5cfea8663cb7b74617</id>
<content type='text'>
Currently start/restart does not generate any configuration files for
spawning a new instance.  This means that

  $ git instaweb --http=&lt;server&gt; --start

might pick up stale 'httpd.conf' file for a different web server
(e.g. for default lighttpd when requesting apache2).

This commit changes that, and makes git-instaweb generate web server
config file and/or gitweb config file if don't exists.

This required naming config files after the name of web server
(alternate solution would be to somehow mark for which web server was
config file generated).

Note that web servers that embed configuration in server script file,
namely webrick and plackup, and which delete "$conf" in their *_conf
function, would have their config (server script) always regenerated.

Note: this commit introduces a bit of code repetition (but only a few
lines).

Reported-by: Gurjeet Singh &lt;singh.gurjeet@gmail.com&gt;
Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Acked-by: Eric Wong &lt;normalperson@yhbt.net&gt;
</content>
</entry>
<entry>
<title>git-instaweb: Move all actions at the end of script</title>
<updated>2011-06-27T09:11:41Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2011-06-23T20:59:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=c0175f92c7da1c379c25b5a70d53b9d550bcc11d'/>
<id>urn:sha1:c0175f92c7da1c379c25b5a70d53b9d550bcc11d</id>
<content type='text'>
As a nice side-effect now the order of parameters does not matter:

  $ git instaweb --httpd=apache2 --start

is now (after this patch) the same as

  $ git instaweb --start --httpd=apache2

Before this commit --start, --stop, --restart (and their subcommand
versions start, stop, restart) exited immediately.

This is preparatory work for making start/restart check that correct
configuration is set up; this change was required to have access in
start_httpd to requested web browser etc.

Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Acked-by: Eric Wong &lt;normalperson@yhbt.net&gt;
</content>
</entry>
</feed>
