<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-instaweb.sh, branch v2.6.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.6.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.6.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-03-10T22:10:35Z</updated>
<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.shady.money/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.shady.money/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.shady.money/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.shady.money/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.shady.money/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.shady.money/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.shady.money/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>
<entry>
<title>git-instaweb: Use $conf, not $fqgitdir/gitweb/httpd.conf</title>
<updated>2011-06-27T09:11:41Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2011-06-23T19:56:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=48bf76ca93c7569660712c12b3c4f86c60803352'/>
<id>urn:sha1:48bf76ca93c7569660712c12b3c4f86c60803352</id>
<content type='text'>
Don't repeat yourself: use "$conf" instead of its [current] contents,
namely "$fqgitdir/gitweb/httpd.conf".

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: Extract configuring web server into configure_httpd</title>
<updated>2011-06-27T09:11:41Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2011-06-23T19:55:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=db61f060be5bc00cc9a44df694bac4ee4b65d02d'/>
<id>urn:sha1:db61f060be5bc00cc9a44df694bac4ee4b65d02d</id>
<content type='text'>
This is preparatory work for making start/restart check that
git-instaweb set up correct configuration, and generate it if it is
missing.

Pure refactoring, no functional changes.

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: Change how gitweb.psgi is made runnable as standalone app</title>
<updated>2011-02-28T06:02:31Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2011-02-26T22:32:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=20e7ab8ae26108e1d8675c375be7f06820da5cb0'/>
<id>urn:sha1:20e7ab8ae26108e1d8675c375be7f06820da5cb0</id>
<content type='text'>
According to blog post "FindBin, __FILE__, $0 and PSGI woes"

  http://bulknews.typepad.com/blog/2011/02/findbin-__file__-0-and-psgi-woes.html

by Tatsuhiko Miyagawa, using 'if (__FILE__ eq $0)' in .psgi code
(to check if script was run from command line), is not supposed to work
since Plack 0.9971.

Replace it with one of proposed solutions; while at it return $app
explicitely, rather than implicitely by being a last expression.

This affects 'plackup' web server.

While at it cleanup whitespace.

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