Commit Briefs

73d2837a6b Stefan Sperling

CHANGES for 0.131 (tags/0.131)


56966c7064 Stefan Sperling

sync dist file list



cfe15c6415 Stefan Sperling

reduce differences to -portable gotd.c


3b135bab5a Stefan Sperling

fix a wrong bounds check in recv_tree_entries()


8d30135ce3 Stefan Sperling

remove a redundant memcpy call in recv_tree_entries()


5d42d6ba70 Stefan Sperling

prevent branches in protected branch namespaces from being rewound

Found by Cas Hariri


eff4b97237 Omar Polo

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.



dab6752493 Omar Polo

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.


fe66becbbe Stefan Sperling

add a TODO item for got clone/fetch


f93156dabe Stefan Sperling

use got_worktree_open_shared() in gotadmin






47b6dcda28 Stefan Sperling

collapse apply_unveil() into a single function again, with a new parameter

No functional change.


9f36809872 Stefan Sperling

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


3fb2130a1a Stefan Sperling

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


dbc85498aa Stefan Sperling

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.



5872d532b3 Stefan Sperling

add map of tag and commit IDs from sha1 to sha256



2cd8863b92 Stefan Sperling

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

ok thomas_adam