<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git-host, branch main</title>
<subtitle>The containers you're looking at
</subtitle>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/git-host/'/>
<entry>
<title>Don't force a command, since we use the shell</title>
<updated>2026-11-15T15:25:54+00:00</updated>
<author>
<name>Jesper Jensen</name>
<email>jesper@jnsn.dev</email>
</author>
<published>2026-11-15T15:25:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/git-host/commit/?id=2393bf58625e9b12332b5859196c2b02da675ab6'/>
<id>2393bf58625e9b12332b5859196c2b02da675ab6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Cleanup from the AI slop</title>
<updated>2026-11-15T15:00:42+00:00</updated>
<author>
<name>Jesper Jensen</name>
<email>jesper@jnsn.dev</email>
</author>
<published>2026-11-15T15:00:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/git-host/commit/?id=bb35e1e366fa1d0680866be26a28eadecba74c3b'/>
<id>bb35e1e366fa1d0680866be26a28eadecba74c3b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>The host, built around the access control executable</title>
<updated>2026-11-15T13:54:36+00:00</updated>
<author>
<name>delusionalai</name>
<email>delusionalai@jnsn.dev</email>
</author>
<published>2026-11-15T13:54:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/git-host/commit/?id=ed62c4ccf06c2c85d871a6334e3e0d82c6e4257a'/>
<id>ed62c4ccf06c2c85d871a6334e3e0d82c6e4257a</id>
<content type='text'>
git-host is now the single home of the git repo configuration. The Dockerfile
grew a build stage that installs git-authz from its own repository (the
access-control / git-host-c project) via `make install`, so the image carries
the executable, its example policy and the pre-receive hook symlink, all placed
by the program's own installer rather than copied by hand.

The server configuration is the git-authz-aware set that used to live beside the
program: the entrypoint sets core.hooksPath and refuses to serve on a policy the
hook cannot use, sshd carries PermitUserEnvironment and ForceCommand so a key's
identity survives to the hook, create-repo prints the policy line to add, and
git-host-key manages keys that name their user. cgitrc keeps the corrected
ordering (repo-scoped settings above scan-path).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-host is now the single home of the git repo configuration. The Dockerfile
grew a build stage that installs git-authz from its own repository (the
access-control / git-host-c project) via `make install`, so the image carries
the executable, its example policy and the pre-receive hook symlink, all placed
by the program's own installer rather than copied by hand.

The server configuration is the git-authz-aware set that used to live beside the
program: the entrypoint sets core.hooksPath and refuses to serve on a policy the
hook cannot use, sshd carries PermitUserEnvironment and ForceCommand so a key's
identity survives to the hook, create-repo prints the policy line to add, and
git-host-key manages keys that name their user. cgitrc keeps the corrected
ordering (repo-scoped settings above scan-path).
</pre>
</div>
</content>
</entry>
<entry>
<title>Move repo-scoped cgit settings above scan-path</title>
<updated>2026-11-15T13:08:13+00:00</updated>
<author>
<name>delusionalai</name>
<email>delusionalai@jnsn.dev</email>
</author>
<published>2026-11-15T13:08:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/git-host/commit/?id=cad3e5f4dff0c77c8eed020308c5bf8ffbff5964'/>
<id>cad3e5f4dff0c77c8eed020308c5bf8ffbff5964</id>
<content type='text'>
cgit processes scan-path at the point it appears in the config file and
every repository it discovers snapshots the current global settings at
that moment (repo_prepare()). Anything placed below scan-path was
silently ignored for scanned repositories -- clone-url was, which is why
the interface showed no clone URLs at all.

Move all repo-scoped settings above scan-path and fix the templates:

- clone-url is a single setting holding a space-separated list; repeating
  the key overwrites rather than appends
- $HTTP_HOST carries the port, which is right for the http URL but would
  yield host:8080:2222 for ssh, so ssh uses port-free $SERVER_NAME
- the ssh path must be "~/..." because git-shell jails the git user to
  its home and an ssh:// path is taken as absolute
- remove-suffix=1 strips ".git" from $CGIT_REPO_URL, so re-append it to
  keep the advertised URLs directly cloneable

This also restores enable-log-filecount, enable-log-linecount,
enable-commit-graph, max-stats, snapshots and about-filter for scanned
repos, and activates remove-suffix (browse URLs lose the ".git" suffix).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
cgit processes scan-path at the point it appears in the config file and
every repository it discovers snapshots the current global settings at
that moment (repo_prepare()). Anything placed below scan-path was
silently ignored for scanned repositories -- clone-url was, which is why
the interface showed no clone URLs at all.

Move all repo-scoped settings above scan-path and fix the templates:

- clone-url is a single setting holding a space-separated list; repeating
  the key overwrites rather than appends
- $HTTP_HOST carries the port, which is right for the http URL but would
  yield host:8080:2222 for ssh, so ssh uses port-free $SERVER_NAME
- the ssh path must be "~/..." because git-shell jails the git user to
  its home and an ssh:// path is taken as absolute
- remove-suffix=1 strips ".git" from $CGIT_REPO_URL, so re-append it to
  keep the advertised URLs directly cloneable

This also restores enable-log-filecount, enable-log-linecount,
enable-commit-graph, max-stats, snapshots and about-filter for scanned
repos, and activates remove-suffix (browse URLs lose the ".git" suffix).
</pre>
</div>
</content>
</entry>
<entry>
<title>Add build config</title>
<updated>2026-08-10T18:02:47+00:00</updated>
<author>
<name>Jesper Jensen</name>
<email>jesper@jnsn.dev</email>
</author>
<published>2026-08-10T18:02:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/git-host/commit/?id=8eeb7af73c5fed13446ff1df90061cbd8f3effb9'/>
<id>8eeb7af73c5fed13446ff1df90061cbd8f3effb9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Simplify clone-url and add mimetypes</title>
<updated>2026-06-04T20:30:14+00:00</updated>
<author>
<name>Jesper Jensen</name>
<email>jesper@jnsn.dev</email>
</author>
<published>2026-06-04T20:30:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/git-host/commit/?id=f8250b936bfd3b74866816f4fe2259b69123a43c'/>
<id>f8250b936bfd3b74866816f4fe2259b69123a43c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>INITIAL COMMIT</title>
<updated>2026-06-04T17:39:17+00:00</updated>
<author>
<name>Jesper Jensen</name>
<email>jesper@jnsn.dev</email>
</author>
<published>2026-04-24T21:36:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/git-host/commit/?id=ac89b3c715fd3eddca7898e069ee04498c1a1ba2'/>
<id>ac89b3c715fd3eddca7898e069ee04498c1a1ba2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
