Commit Briefs

8ea2e76efa Thomas Adam

gotwebd: fix broken navigation in commits page since 8d02314

ok tracey@


e7e5fa49fc Thomas Adam

gotwebd: start using the template system

ok tracey@


6509b1818d Thomas Adam

import template

ok tracey@


414e37cb37 Thomas Adam

switch gotd from chroot(2) to unveil(2)

In the future, gotd will fork+exec new processes for each client connection. Using unveil instead of chroot avoids having to start such processes as root. The -portable version could use chroot(2) where no equivalent to unveil(2) exists. A future component which starts new processes will be isolated as a separate process, which could run as root in the -portable version. ok op@


2b3d32a184 Thomas Adam

add a gotd "listen" process which watches the unix socket

ok op@



d865e5fd74 Thomas Adam

add some TODO items for gotadmin


2bf2e64494 Thomas Adam

in gotd regress, use USER instead of USERNAME and check for sudo/doas users

Problem where USERNAME is not usually set on OpenBSD reported by Mikhail ok jamsek



911f5cd53e Thomas Adam

remove bogus abort() call from gotsh echo_error()



1eec6e4e1a Thomas Adam

fix gotd startup without any -v options


43a44bcef1 Thomas Adam

gotwebd: simplify bit of gotweb_process_request

ok tracey


c44c7d6e16 Thomas Adam

avoid copying reused deltas to delta cache file; copy from pack file instead

ok op@


eac60ea119 Thomas Adam

make gotd_imsg_flush() retry if imsg_flush() returns EAGAIN

ok op@



3e9a56b5bb Thomas Adam

gotwebd: provide maximum value for the description and cloneurl

ok stsp@




53f9cbbf15 Thomas Adam

portable: sha1.h


4606e6d4d9 Thomas Adam

gotwebd: rework gotweb_get_repo_{description,cloneurl}

- use openat(2) since we've already opened the containing dir - use fstat(2) instead of multiple seeks - don't special case len == 0 ok and improvements by stsp


6c7f10f725 Thomas Adam

gotwebd: drop unused path parameter from got_get_repo_{owner,age}

ok jamsek


24240f6a1c Thomas Adam

gotwebd: simplify gotweb_render_index

- drops the double loop; paginate in one go - avoid lstat + got_path_dir_is_empty for each entry: use dt_type if provided by the underlying filesystem - fixes a memleak: before `continue' we need to call gotweb_free_repo_dir ok stsp


57e88d7cd3 Thomas Adam

gotwebd: use prev_disp to decide when to we've reached max_repos

instead of hardcoding d_i - 2 and so expecting only "." and ".." as skipped entries, use t->prev_disp that is the number of repositories traversed until now (both skipped due to the pagination and the ones actually rendered.) ok jamsek