Commits


CHANGES for 0.131


sync dist file list


gotd user name is now passed via -U so we can avoid getpwnam() during reload


reduce differences to -portable gotd.c


fix a wrong bounds check in recv_tree_entries()


remove a redundant memcpy call in recv_tree_entries()


prevent branches in protected branch namespaces from being rewound Found by Cas Hariri


sync files from diff.git 5d8f044ef31781fd2b1488a2394b9be344c53f7a398d6025cd7fad7b1f42549e always print a tab after the file name the way patch extracts the filename from the '---' and '+++' lines (and also Index: etc, ...) is by breaking at the first white space. If there is a tab though, patch will extract everything up to that tab, including whitespaces. This is how it's possible to patch file with whitespaces in them. It's not possible to patch file with tabs or newlines in their name though, unfortunately. ok stsp on the code; regress fixed afterwards.


regress/cmdline: fix testroot for diff_dir_to_file


regress/cmdline: add a patch test for a file name with whitespaces in it it's already passing, but make sure we won't add regressions.


add a TODO item for got clone/fetch


use got_worktree_open_shared() in gotadmin


tog never modifies the work tree so make it use got_worktree_open_shared()


this parameter specifies a locking strategy so rename it accordingly


rename the function which finds a work tree at or above the given path


static functions don't usually need a got_ namespace prefix


collapse apply_unveil() into a single function again, with a new parameter No functional change.


got: Allow shared worktree Call got_worktree_open_shared and apply_unveil_worktree_ro (where relevant) for commands which will not be modifying the work tree: blame, cat, diff, fetch, info, log, ref, send, status, tag, tree, and branch when in "list" or "show" modes. Patch by Colin Percival


add got_worktree_open_shared The function open_worktree now takes a flags argument; and both got_worktree_open and got_worktree_open_shared are wrappers around got_worktree_open_flags. Patch by Colin Percival


move privdrop out of the per-process switch statement in gotd's main() function This might make it easier for -portable to fix the chroot issue mentioned in https://marc.gameoftrees.org/mail/1743195001.95133_0.html The parent process would need to keep running as root, to allow children to start up as root and use chroot() before privdrop.


prevent tog crashing if work tree's base commit ID uses a bad hash algorithm


add map of tag and commit IDs from sha1 to sha256


add test coverage for "hash algorithm" in global gotsys.conf context


allow the default hash algorithm to be changed to sha1 in gotsys.conf ok thomas_adam


add a todo item for work trees accessed via a read-only filesystem mount