Commits


make read errors in gotsh serve_write() fatal, as was done for serve_read()


gotsh: validate with parse_command before connecting Export parse_command (now got_serve_parse_command) from lib/serve.c and use it to validate the command line in gotsh instead of just checking that the -c argument starts with 'git-receive-pack' or 'git-upload-pack'. Invalid usage now always fails before opening the socket, while before it wasn't always the case. This also means that invalid usage doesn't count towards the limits. ok jamsek, stsp


fmt; fold long line


make read errors in gotsh serve_read() fatal and adjust tests accordingly ok jamsek


only "forward" implicit flush packets in serve_read() if they are expected ok jamsek


fix spurious "gotsh: unexpected flush packet" error when client is up-to-date ok op@


fix an issue where gotd fails to accept multiple have-lines from clients ok op, jamsek


replace malloc+memcpy with strndup. no functional change intended ok stsp@


remove bogus abort() call from gotsh echo_error()


fix capabilities announced by gotsh when no reference exist in repository ok op@


fix sending of capabilities from gotsh(1) in case repository has no refs


remove trailing whitespace; patch by Josiah Frentsos


avoid incomplete writes of buffered pack file chunks in gotsh


remove sendfd pledge promise from gotd repo_read process Have the parent process send one end of the pipe directly to gotsh(1), such that repo_write can run without "sendfd". Combining "sendfd" and "recvfd" in the same process is frowned upon. ok tracey


remove sendfd pledge promise from gotd repo_write process Have the parent process send one end of the pipe directly to gotsh(1), such that repo_write can run without "sendfd". Combining "sendfd" and "recvfd" in the same process is frowned upon. ok tracey