Commit Briefs
portable: update imsg from libutil
imsg in OpenBSD has undergone a lot of changes recently. This commit includes fixes to imsg on Linux and hopefully other non-BSD systems.
implement gotwebd test harness
Only a couple basic regress tests so far for the index/summary and diff pages. Documentation is still needed. ok stsp@
gotwebd: fix UB when path param is not in query
Don't pass NULL as a *printf(3) %s conversion specifier argument. If the path parameter is not defined, return repo not found error. ok stsp@
discern mixed-commit worktree diffs with commit header
Instead of emitting the work tree's base commit in the diff's topmost header, which is misleading in mixed-commit work trees, emit each file's base commit in its diff header. Suggested by stsp and discussed with op and stsp on IRC. ok stsp@
gotwebd: fix styling
diff from Bradley Taunt, thank you!
grant regress http-server script more time to start up
Otherwise I see spurious test failures on my arm64 builder.
do not call imsgbuf_clear() before got_privsep_send_error() in helpers
Fixes cosmetic test failures, such as in cmdline/tree.sh.
in gotd, use a polling loop around imsgbuf_write() instead of imsgbuf_flush()
Avoids potential endless loops with non-blocking I/O.