Commit Briefs

1fbd2b3b8a Stefan Sperling

CHANGES for 0.112 (tags/0.112)


afbdf128aa Stefan Sperling

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


86abf691af Stefan Sperling

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.


866e94146b Kyle Ackerman

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@


0212f18060 Kyle Ackerman

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@


160508d5f7 Stefan Sperling

remove a gotsysd todo item that is done




e03756bbbc Stefan Sperling

fix unrelated errors being reported if a histedit operation is aborted

This avoids errors such as "object not found" or "reference not found" when exiting the histedit script editor without making any changes to the script. got_worktree_histedit_abort() was filling up error.c error buffers with unrelated errors that were simply being ignored. I now see the expected "no changes made to histedit script" error. Issue reported by ninjin on IRC



4492e47bc9 Anton Lindqvist

gotwebd: inherit all user groups

Required if repos_path is not owned by the _gotwebd group. ok stsp@


a345a9df6d Johannes Thyssen Tishman

remove /tmp/got-importmsg on empty import commit message

ok stsp@


43da8b281f Stefan Sperling

typo in gotsysd.conf.5 spotted by Mischa Peters


be9d733165 Stefan Sperling

bump version number


8cf462a247 Stefan Sperling

CHANGES for 0.111 (tags/0.111)



bef1456818 Stefan Sperling

ensure that gotsysctl gets installed into /usr/local/sbin


1a752fd9da Stefan Sperling

sync dist-file list


acf1343ac7 Stefan Sperling

switch to UID 600 for _gotsysd to match the ports tree


539ba66389 Omar Polo

got-fetch-http: improve handling of HTTP chunked responses

Use a cursor inside the buffer to parse the reply and handle the chunking delimiters instead of memmove()'ing around memory all the time. Spotted after a report from Colin Percival on IRC (thank you!) about got-fetch-http hogging the CPU while cloning the FreeBSD src.git repository. While here also simplify the chunked/non-chunked distinction and teach http_read() how to directly copy the data to a FILE. tested also by Colin, ok stsp@


7131385900 Kyle Ackerman

Plug some memory leaks in got-{send,fetch}-pack

my_capabilities was leaked in both got-send-pack and got-fetch-pack and needed freeing it in both. ok op@




cab13f2dcc Stefan Sperling

free gotweb.c iev_server on shutdown