Commit Briefs

b4d10c2be9 Thomas Adam

gotwebd: don't got_ref_list per-commit in got_get_repo_commits

It's wasteful since `refs' is already populated before the loop, and released after. It also leaks the content of `refs' the first time the loop is entered. ok jamsek


53bf32b82a Thomas Adam

gotwebd: turn gotweb_get_time_str into gotweb_render_age

ok jamsek


502374853d Thomas Adam

gotwebd: refactor gotweb_render_content_type/_file

Rework them so that they allow to set the Status header (the HTTP status code; only way since we're behind FastCGI) and optionally a Location. Since they're now unused outside of gotweb.c, mark them as static. They also used to always return NULL so the error is pointless; return the -1 on failure though. While here, rename to gotweb_reply and gotweb_reply_file. ok jamsek


113392cfbd Thomas Adam

make read errors in gotsh serve_read() fatal and adjust tests accordingly

ok jamsek


23ac500059 Thomas Adam

return GOT_ERR_EOF from pkt.c if a read attempt indicates EOF

ok jamsek


94a71055f4 Thomas Adam

only "forward" implicit flush packets in serve_read() if they are expected

ok jamsek


98c7fd82fd Thomas Adam

make gotd session process accept just one flush packet at a time

ok jamsek


bd15e87434 Thomas Adam

sort ENVIRONMENT entries in got.1 and tog.1

ok jamsek


8171e9d1b7 Thomas Adam

portable: set next version


9e39ef14fd Thomas Adam

portable: release 0.81 (tags/0.81)


9981e8e386 Thomas Adam

portable: template: use as a subproject

Move template into its own subproject as it's only needed at compile-time and shouldn't be installed. This needs compiling with the host compiler which is configurable via HOSTCC and HOSTCLFAG environment variables. This diff largely from op@ but additional tweaking from myself.


873716fa36 Thomas Adam

gotwebd.8: sort -d after -D

patch by Josiah Frentsos, thanks!


30f1b1d205 Thomas Adam

gotd.8, gotwebd.8: new sentence, new line

diff from Josiah Frentsos, thanks!



a8771ebd44 Thomas Adam

fix typo: overlapping comparison always evaluates false

ok stsp@


eed7056060 Thomas Adam

bump version number


09b9426f6d Thomas Adam

changes for 0.81



f86347934f Thomas Adam

fix ambiguous phrasing of -d option documentation


c855c9f037 Thomas Adam

document the gotd -n option


d98779cd32 Thomas Adam

gotd: fix "bad packfile with zero objects" error while creating branches

Clients will send an empty pack file if they are only creating new references and have no objects to upload. Make gotd handle this and add a regression test which triggers the bug. Problem found by op@. The new regression test caught an unrelated issue where the client connection was left lingering after references had been updated, which made 'got send' followed by 'got clone -l' fail with the connection limit configured for the test suite (just one connection is allowed at a time). Fix this as well. ok op@


895484c861 Thomas Adam

fix spurious "gotsh: unexpected flush packet" error when client is up-to-date

ok op@


71d196c9e2 Thomas Adam

regress: replace typeset with printf for shell portability

The typeset shell builtin is a ksh(1) feature. It is not available in a pure POSIX sh(1). Use printf(1) to portably perform the same string truncation. tweak and ok op jamsek


6110f5ef4a Thomas Adam

fix an issue where gotd fails to accept multiple have-lines from clients

ok op, jamsek


0445d8ec48 Thomas Adam

fix an issue where multiple ref-updates are rejected by gotd

ok op@