Commits
- Commit:
9aeaf23a7e94501bdcb20d18427620cf70b87995
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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
- Commit:
b5225f29d85b32692bdfed88b3e93babf8269494
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotd: disconnect on client EOF too
Otherwise gotd keeps the (client-closed) sockets around and may prevent
new connections from being established since they still count for the
limits.
ok jamsek, stsp
- Commit:
c808f450905feb2890b615ba1aeedb565e3fdd57
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fmt; fold long line
- Commit:
65c2e81071bab7f9018a062b4d590e67e1a6f021
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: avoid full history traversal in briefs/commits
This purposefully breaks the 'previous' button in the commits and briefs
page. It's hard to find the parent of a commit since they can only be
iterated forward. The way the previous button was generated was to walk
the history from the HEAD down to the specified commit. This is costly
but more importantly leads to issue when dealing with paths that were
deleted from the repository.
Discussed with stsp and tracey, ok jamsek.
- Commit:
aa31714b5b44e1b79b15792902586d60da22e47a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: don't got_ref_list per-commit in got_get_repo_commits
It's wasteful since `refs' is already populated before the loop, and
released after. It also leaks the content of `refs' the first time the
loop is entered.
ok jamsek
- Commit:
cb93ab40659f5d64c7a4f56919d203efa2d8a565
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: turn gotweb_get_time_str into gotweb_render_age
ok jamsek
- Commit:
6cdf29f9353bcea609dcbab90131634430ac5a18
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: refactor gotweb_render_content_type/_file
Rework them so that they allow to set the Status header (the HTTP status
code; only way since we're behind FastCGI) and optionally a Location.
Since they're now unused outside of gotweb.c, mark them as static. They
also used to always return NULL so the error is pointless; return the -1
on failure though.
While here, rename to gotweb_reply and gotweb_reply_file.
ok jamsek
- Commit:
96afb0d62311dd459395b8eba2216094c18dfb67
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make read errors in gotsh serve_read() fatal and adjust tests accordingly
ok jamsek
- Commit:
695bc1ecccf24ece2b0b8a03a5f0d26ad5116a0e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
return GOT_ERR_EOF from pkt.c if a read attempt indicates EOF
ok jamsek
- Commit:
f91b5c433d4c2fb2e80053859b6f15c9239b3231
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
only "forward" implicit flush packets in serve_read() if they are expected
ok jamsek
- Commit:
3448a19afa20edfa1069b2d793abcda5a9006565
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make gotd session process accept just one flush packet at a time
ok jamsek
- Commit:
7713cc5e4f5544e81909670d592e89526ed86c9b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sort ENVIRONMENT entries in got.1 and tog.1
ok jamsek
- Commit:
8fcd5cccdccdf61486b86753d28252df3bd5444a
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd.8: sort -d after -D
patch by Josiah Frentsos, thanks!
- Commit:
b3bed212b3579369f1b3161683ca3a9a5c3e0118
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Omar Polo <op@omarpolo.com>
- Date:
gotd.8, gotwebd.8: new sentence, new line
diff from Josiah Frentsos, thanks!
- Commit:
eca2b1d0d697cef723df2d1394b84b636c02ced0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add missing bounds-check in gitproto ref-line tokenizer
- Commit:
00d10bca0a12585f81942e747b330101d0f7303a
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
fix typo: overlapping comparison always evaluates false
ok stsp@
- Commit:
cbb2185c687e1b7de7ee59e91e23ab64c6607571
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
bump version number
- Commit:
a5ddf5e0ebf8e0a3595e8d27c04e9d6869891758
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
changes for 0.81
- Commit:
cce8ba758294f57f72fa4e100fd2074dff3cc6ff
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
have 'make clean' traverse into regress/gotd in order to remove gotd.conf
- Commit:
a164ea7011e2e062b7d43291b7ba49c2cac004fd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix ambiguous phrasing of -d option documentation
- Commit:
e9e01966df9e3fe005d0e7c8abcc92134838eaf9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
document the gotd -n option
- Commit:
0ff2c315fe0f2f0fe4a92cae73c8a4a9fd21a402
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
gotd: fix "bad packfile with zero objects" error while creating branches
Clients will send an empty pack file if they are only creating new
references and have no objects to upload. Make gotd handle this and
add a regression test which triggers the bug. Problem found by op@.
The new regression test caught an unrelated issue where the client
connection was left lingering after references had been updated,
which made 'got send' followed by 'got clone -l' fail with the
connection limit configured for the test suite (just one connection
is allowed at a time). Fix this as well.
ok op@
- Commit:
fecfd5bc4d412263e1178f9b6edf69709ea6e273
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix spurious "gotsh: unexpected flush packet" error when client is up-to-date
ok op@
- Commit:
05594ba5c50d7a7b10882b9504d75bdd5df348a3
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
regress: replace typeset with printf for shell portability
The typeset shell builtin is a ksh(1) feature. It is not available
in a pure POSIX sh(1). Use printf(1) to portably perform the same
string truncation.
tweak and ok op jamsek
- Commit:
f9550d472ec2151070b5bef2bd3b950d9f8e7949
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix an issue where gotd fails to accept multiple have-lines from clients
ok op, jamsek