home
readme
diff
tree
note
docs
0commit 1c0e74edeac2e3c7c97fd4efb116106b85c9c2ca
1Author: lakefox <mason@lakefox.net>
2Date: Tue Jan 6 21:47:48 2026 -0700
3
4 git auth wrapper
5
6diff --git a/cgi-bin/auth b/cgi-bin/auth
7new file mode 100755
8index 0000000..13cf54e
9--- /dev/null
10+++ b/cgi-bin/auth
11@@ -0,0 +1,10 @@
12+#!/bin/sh
13+export GIT_PROJECT_ROOT="/var/www/git.ws/repo"
14+export GIT_HTTP_EXPORT_ALL=1
15+
16+# Strip the script name from the beginning of PATH_INFO
17+# This turns "/git_wrapper/gitws.git/..." into "/gitws.git/..."
18+export PATH_INFO="${PATH_INFO#/git_wrapper}"
19+
20+# Execute the backend
21+exec /usr/lib/git-core/git-http-backend
22diff --git a/index.html b/index.html
23index 2da4f66..55e8212 100644
24--- a/index.html
25+++ b/index.html
26@@ -34,19 +34,19 @@
27 </thead>
28 <tbody>
29 <tr>
30- <td><a href="http://grim.git.ws/">grim/</a></td>
31+ <td><a href="http://git.ws/cgi-bin/git.awk?name=grim&hash=HEAD&action=readme">grim/</a></td>
32 <td>HTML/CSS renderer with a C++ DOM API</td>
33 <td><a target="_blank" href="https://web.libera.chat/gamja/?autojoin=#grim">#grim</a></td>
34 <td><a href="http://git.ws/repo/grim.git">http://git.ws/repo/grim.git</a></td>
35 </tr>
36 <tr>
37- <td><a href="http://gitws.git.ws/">git.ws/</a></td>
38+ <td><a href="http://git.ws/cgi-bin/git.awk?name=gitws&hash=HEAD&action=readme">git.ws/</a></td>
39 <td>All the scripts that run git.ws (mailto.awk/git.awk)</td>
40 <td><a target="_blank" href="https://web.libera.chat/gamja/?autojoin=#gitws">#gitws</a></td>
41 <td><a href="http://git.ws/repo/gitws.git">http://git.ws/repo/gitws.git</a></td>
42 </tr>
43 <tr>
44- <td><a href="http://spectre.git.ws/">spectre/</a></td>
45+ <td><a href="http://git.ws/cgi-bin/git.awk?name=spectre&hash=HEAD&action=readme">spectre/</a></td>
46 <td>Fast router OS</td>
47 <td><a target="_blank" href="https://web.libera.chat/gamja/?autojoin=#spectre">#spectre</a></td>
48 <td><a href="http://git.ws/repo/gitws.git">http://git.ws/repo/spectre.git</a></td>
49@@ -56,6 +56,5 @@
50 <hr>
51 <p>This site is HTML 2.0 compliant.</p>
52 <a href="http://validator.w3.org/check?uri=git.ws"><img src="valid-html20.png" alt="Valid HTML 2.0"></a>
53- <img src="solar-button.gif" alt="This site is ran on 100% solar power.">
54 </body>
55 </html>
56diff --git a/solar-button.gif b/solar-button.gif
57deleted file mode 100644
58index 66d2dfc..0000000
59Binary files a/solar-button.gif and /dev/null differ