<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-instaweb.sh, branch v2.45.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.45.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.45.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2023-11-26T01:07:05Z</updated>
<entry>
<title>doc: switch links to https</title>
<updated>2023-11-26T01:07:05Z</updated>
<author>
<name>Josh Soref</name>
<email>jsoref@gmail.com</email>
</author>
<published>2023-11-24T03:35:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d05b08cd52cfda627f1d865bdfe6040a2c9521b5'/>
<id>urn:sha1:d05b08cd52cfda627f1d865bdfe6040a2c9521b5</id>
<content type='text'>
These sites offer https versions of their content.
Using the https versions provides some protection for users.

Signed-off-by: Josh Soref &lt;jsoref@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-sh-setup.sh: remove "say" function, change last users</title>
<updated>2022-06-28T20:13:18Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-06-28T10:05:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5b893f7d81eb7feb43662ed8663e2af76a76b4c8'/>
<id>urn:sha1:5b893f7d81eb7feb43662ed8663e2af76a76b4c8</id>
<content type='text'>
Remove the "say" function, with various rewrites of the remaining
git-*.sh code to C and the preceding change to have git-submodule.sh
stop using the GIT_QUIET variable there were only four uses in
git-subtree.sh. Let's have it use an "arg_quiet" variable instead, and
move the "say" function over to it.

The only other use was a trivial message in git-instaweb.sh, since it
has never supported the --quiet option (or similar) that code added in
0b624b4ceee (instaweb: restart server if already running, 2009-11-22)
can simply use "echo" instead.

The remaining in-tree hits from "say" are all for the sibling function
defined in t/test-lib.sh. It's safe to remove this function since it
has never been documented in Documentation/git-sh-setup.txt.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-sh-setup: remove "sane_grep", it's not needed anymore</title>
<updated>2021-10-21T23:17:57Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-10-21T19:58:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ebeb39faad6e3a67c31884c3dc6b76ce58b3f15b'/>
<id>urn:sha1:ebeb39faad6e3a67c31884c3dc6b76ce58b3f15b</id>
<content type='text'>
Remove the sane_grep() shell function in git-sh-setup. The two reasons
for why it existed don't apply anymore:

1. It was added due to GNU grep supporting GREP_OPTIONS. See
   e1622bfcbad (Protect scripted Porcelains from GREP_OPTIONS insanity,
   2009-11-23).

   Newer versions of GNU grep ignore that, but even on older versions
   its existence won't matter, none of these sane_grep() uses care
   about grep's output, they're merely using it to check if a string
   exists in a file or stream. We also don't care about the "LC_ALL=C"
   that "sane_grep" was using, these greps for fixed or ASCII strings
   will behave the same under any locale.

2. The SANE_TEXT_GREP added in 71b401032b9 (sane_grep: pass "-a" if
   grep accepts it, 2016-03-08) isn't needed either, none of these grep
   uses deal with binary data.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-instaweb: unconditionally assume that gitweb is mod_perl capable</title>
<updated>2021-10-21T23:17:57Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-10-21T19:57:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6e3b0348a442afc58ca02259d476732c18ac26d0'/>
<id>urn:sha1:6e3b0348a442afc58ca02259d476732c18ac26d0</id>
<content type='text'>
Remove a check for whether mod_perl is a supported mode of gitweb.cgi
added in a51d37c1df6 (Add git-instaweb, instantly browse the working
repo with gitweb, 2006-07-01).

The reason for the check was to support users who had a newer version
of git and an older version of gitweb, it was then subsequently
adjusted for changes in the script in f0e588dffc1 (git-instaweb: fix
mod_perl detection for apache2, 2009-08-08).

It's a fair bet that nobody's running a git from 2021 and gitweb from
pre-2007 anymore, so we can unconditionally assume that this will be
supported by gitweb.cgi.

This allows a subsequent commit to remove the sane_grep() wrapper,
this change is split up from that since this is the only case where
the "grep" invocation could be removed entirely.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<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.shady.money/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.shady.money/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.shady.money/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.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>
</feed>
