Commit Briefs

e9ace9bb97 Omar Polo

CHANGES for 0.106 (tags/0.106)


39b18c7c0c Stefan Sperling

in gotd, use a polling loop around imsgbuf_write() instead of imsgbuf_flush()

Avoids potential endless loops with non-blocking I/O.


15fbb79b06 Stefan Sperling

fix wrong function name in error message




37b4ccba4a Stefan Sperling

connect the notifier only if the session process is writing to the repo

fixes "gotd: unexpected imsg 40" in logs


32fdf3fdde Stefan Sperling

use GOT_NOTIFY_TIMEOUT for both notification helpers

Fixes timeout setting used by http notification helper during tests.




33c550942d Stefan Sperling

return an error instead of calling abort()


eae27e22da Stefan Sperling

remove dangling include statement


fd9f46f196 Stefan Sperling

convert got to new imsg API; build now requires OpenBSD -current

Patch by op@, committing on his behalf and will be adding fixes on top


6f86da294d Stefan Sperling

remove got_pathlist_append()

Remove got_pathlist_append(). This leaves got_pathlist_insert() to add items to a pathlist, making it very easy to swap got_pathlist from a TAILQ to a RB_TREE. Patch by Kyle Ackerman


799728f7ae Stefan Sperling

gotwebd: improve performance of repository age calculations

Instead of sorting refs by name and then hunting for the youngest commits in that list, obtain an appropriately sorted list via got_ref_cmp_by_commit_timestamp_descending and then pick the first ref from this list. And in the case were we already know which ref to check, just open this ref directly instead of listing all the refs. Easier to read and should improve performance in both cases. ok op, jamsek


ece731b025 Omar Polo

remove unused imsgbuf

ok jamsek, stsp


3065f08c04 Mark Jamsek

gotwebd: ensure child procs inherit non-default config

If a non-default config filepath is specified with -f, it is effectively ignored as child processes always either parse the default config file (/etc/gotwebd.conf) if it exists, or use defaults. Options specified in the config file used by server procs (e.g., chroot, user) are ignored. If -f is used with a non-default config file, pass it to child procs. ok stsp@


87e823f249 Stefan Sperling

fix bogus "reference not found" error from 'got send'

When a reference exists on the server but not locally, 'got send' could fail to ignore this reference as intended, raising an error instead. Add a test case for this isssue.


ddd27308ca Stefan Sperling

fix a typo in CHANGES, spotted by teajaygray@rap.social


a0bcd23d70 Stefan Sperling

bump version number


b7368299fd Stefan Sperling

CHANGES for 0.105 (tags/0.105)


47450175a8 Mark Jamsek

whitespace


e42da5dbbf Mark Jamsek

plug memory leaks in 'got fetch' and 'got send'

In addition to the previous commit [c450903bc2] that plugged fetch and send leaks, free what would be the path entry's path member, which is leaked when attempting to add a duplicate. And in the fetch case, free refname and id when got_pathlist_insert() returns err. ok stsp@


0e1d99b70d Stefan Sperling

make gotwebd.css styling consistent across all window sizes

Patch by op@, who is at the wrong computer right now



9c1b133592 Stefan Sperling

plug a memory leak in got_pack_create()

Patch by: Kyle Ackerman