Commits


plug leak on BIO_new error path


actually generate a random token and send it to the subprocesses


use uid instead of username as string


teach gotwebd how to decode the tokens


fix client_write


actually implement the token generation


minor refactor and actually check the cookie


fix out of bounds


wip


gotwebd: handle the ?login query parameter for now the token is just a dummy "42". We still need to parse this in incoming requests too.


simplify gotsh weblogin


gotwebd: start to implement the auth feature rearranged the code a bit; let's use a bufferevent since we're not going to use imsg for this anyway. for now it just replies back with a dummy URL.


gotsh: fix usage


add an auth process to gotwebd (WIP: it receives requests, but does nothing)


implement gotsh weblogin command


gotwebd: delete trailing whitespaces


gotwebd: simplify handling of action not found


bump version number


CHANGES for 0.112


stop opening the repository when opening a work tree Opening a bunch of files in /tmp for pack temp files and opening the repository just to validate the work tree's base-commit ID is overkill. Simply parse the ID directly. If the commit object no longer exists we will run into another error sooner or later. The commit is already protected by the work tree reference. If it is missing then something has badly gone wrong. Doing less work when opening work trees speeds up 'got status' a bit. As pointed out by Kyle this also avoids running got-read-gitconfig twice when opening both a repository and a work tree. ok by op@ and Kyle Ackerman


add comments explaining that .got/base-commit needs hash algo information Hopefully, if we ever bump the work tree format in the future we will see these comments and sneak in a change to the .got/base-commit file in order to record the hash algorithm of the base commit ID.


Plug memory leaks in some libexecs This occurred when these particular libexecs get an imsg of type GOT_IMSG_STOP. They attempt to exit the main loop and leak the last imsg they received. ok stsp@ op@


Plug a memory leak in gitconfig.c conf_parse_line frees *section before allocating a new one, which leaks *section on the last iteration of conf_parse. ok stsp@


remove a gotsysd todo item that is done


implement support for protected references in gotsys.conf and gotsysd