<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-instaweb.sh, branch v1.8.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.8.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.8.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2011-06-27T09:11:41Z</updated>
<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>
<entry>
<title>git instaweb: enable remote_heads</title>
<updated>2010-11-17T21:04:52Z</updated>
<author>
<name>Giuseppe Bilotta</name>
<email>giuseppe.bilotta@gmail.com</email>
</author>
<published>2010-11-11T12:26:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fc5b8e0163fc9e37707d22dbc484a59040c48292'/>
<id>urn:sha1:fc5b8e0163fc9e37707d22dbc484a59040c48292</id>
<content type='text'>
When using git instaweb to browse a local repository, performance is
much less of an issue, and providing as much information as possible has
a higher priority, so it makes sense to enable remote_heads.

Signed-off-by: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
Acked-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>instaweb: add access+error logging for WEBrick</title>
<updated>2010-08-05T08:51:26Z</updated>
<author>
<name>Eric Wong</name>
<email>normalperson@yhbt.net</email>
</author>
<published>2010-08-05T08:46:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e9323e7f09d171739e8dbc9d60d77281caa06177'/>
<id>urn:sha1:e9323e7f09d171739e8dbc9d60d77281caa06177</id>
<content type='text'>
This allows WEBrick to support all the logging functionality
in a manner consistent with the other web servers.

Signed-off-by: Eric Wong &lt;normalperson@yhbt.net&gt;
</content>
</entry>
<entry>
<title>instaweb: minimize moving parts for WEBrick</title>
<updated>2010-08-05T08:51:26Z</updated>
<author>
<name>Eric Wong</name>
<email>normalperson@yhbt.net</email>
</author>
<published>2010-08-05T08:35:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f46e130439a57ce44708971183adab7e58512b34'/>
<id>urn:sha1:f46e130439a57ce44708971183adab7e58512b34</id>
<content type='text'>
Since there are WEBrick configuration settings (including the
upcoming AccessLog support) that cannot be represented in YAML
and require Ruby anyways, the YAML config file is an unnecessary
layer of complexity.

Additionally, the shell script wrapper to start WEBrick is
unecessary since our generated Ruby script can be made
executable in the same manner with /usr/bin/env.

Signed-off-by: Eric Wong &lt;normalperson@yhbt.net&gt;
</content>
</entry>
<entry>
<title>instaweb: fix WEBrick server support</title>
<updated>2010-08-05T08:51:26Z</updated>
<author>
<name>Eric Wong</name>
<email>normalperson@yhbt.net</email>
</author>
<published>2010-08-04T09:51:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=422bff280297b55aff6542cc5df1c078f37ab673'/>
<id>urn:sha1:422bff280297b55aff6542cc5df1c078f37ab673</id>
<content type='text'>
This has been broken since commit be5347b ("httpd logs in a
"$httpd_only" subdirectory").

Since WEBrick has no other way of preserving environment
variables needed for gitweb, we create a shell script wrapper
that sets the environment variables as our CGI interpreter
to run gitweb.cgi.

Signed-off-by: Eric Wong &lt;normalperson@yhbt.net&gt;
</content>
</entry>
<entry>
<title>git-instaweb: Don't assume Apache executable is named apache2</title>
<updated>2010-07-23T18:16:05Z</updated>
<author>
<name>Dan McGee</name>
<email>dpmcgee@gmail.com</email>
</author>
<published>2010-06-30T12:29:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4bdf85995b5d21fdb085a480d529c8da0314189e'/>
<id>urn:sha1:4bdf85995b5d21fdb085a480d529c8da0314189e</id>
<content type='text'>
On Arch Linux, the executable for the Apache HTTP server keeps
the 'httpd' name and is not named 'apache2'. The path to the
server modules also contains 'httpd' rather than 'apache2'.
Remove some of these assumptions and add the httpd name in where
it may be required. Finally, make some slight style adjustments
to the code we are touching to make it fit the style of the rest
of the script.

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