Commit Briefs


Thomas Adam

template: join subsequent tp_puts() calls

This greatly reduces the number of tp_puts() calls: gotwebd' pages.tmpl goes from 444 to 190. Otherwise, this doesn't produce other observable changes.


Thomas Adam

gotweb: style improvements

First round of polishing, css simplification and responsiveness for gotwebd. The new HTML is now actually usable on text-only browsers and the fonts are bigger on smaller screens; close to no changes for "normal" desktop usage. A few regressions were spotted by Lucas on IRC, thanks! No objections from stsp@


Thomas Adam

got_worktree_open: do not skip a locked worktree

When trying to open a worktree from a list of metadata directories (.got, .cvg), error out when a worktree is found but is already locked. Skipping it and proceeding would result in a confusing "no git repository found" error from tog and gotadmin. ok stsp


Thomas Adam

copy remote repo info out of work tree data before closing the work tree

Fixes a crash regression introduced when fetch/send were made to close the work tree earlier.


Thomas Adam

tog: add basic regress for log limit and log search

This required minor changes to tog.c to teach tog the new test instructions and feed it search terms when driven by the harness. More is needed for these features but this provides some basic coverage for the & and / log keymaps. ok stsp


Thomas Adam

make 'got fetch' and 'got send' release the work tree lock earlier

This avoids having work tree operations blocked while network transfers are in progress. ok op@


Thomas Adam

expose out-of-memory errors from zlib inflate() and deflate() calls

Previously these were hidden behind a general "compression failed" error. ok kn


Thomas Adam

portable: set next version


Thomas Adam

portable: release 0.92 (tags/0.92)


Thomas Adam

portable: gotd: fix dist file inclusion

When running 'make dist', include the correct chroot-*.c file.


Thomas Adam

portable: configure: echo gotd/gitwrapper paths

When --enable-gotd is present, and gotd empty path or gitwrapper's git libexec path is set, print those out with the other information at the end of the configure script. "N/A" is set where no value is present. Helpful for debugging.


Thomas Adam

portable: make gitwrapper --enable-gotd aware

There's no point installing gitwrapper outside of enabling gotd, as this is only used by gotd.


Thomas Adam

portable: gitignore: add gitwrapper


Thomas Adam

portable: README: installation of gitwrapper

Document the installation and packaging of gitwrapper for -portable


Thomas Adam

portable: configure gitwrapper/gotd paths

Rather than hard-code assumptions into gitwrapper and gotd binaries, allow for some values to be overriden at compile time. This should help portability.


Thomas Adam

portable: mismerge in serve_write()


Thomas Adam

portable: gotd: re-enable chroot

Reads (git clone) are working but writes (git push) run into an error


Thomas Adam

portable: linux: use default git libexec

Define a standard path to where git stores its libexec helpers. This is always going to be hit-and-miss hard-coded like this, but will suffice for now. Tested on ubuntu 22.04


Thomas Adam

portable: getprocname: program_invocation_short_name

This is needed for gitwrapper which will fail if its program name cannot be detected properly.


Thomas Adam

portable: gotd/gitwrapper: update for libs

Bring gotd and gitwrapper closer to how libraries are detected.


Thomas Adam

portable: gotd: EXTRA_DIST



Thomas Adam

portable: gotd: listen

Include listen.c; make it portable.


Thomas Adam

portable: handle gotd/auth