Commits
- Commit:
a72fb3943aac447913520efc133b9b010beb8001
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
add a test for ssh connections without a repo path argument
would have caught the fixed failure in disposing early-closed
connections in gotd.
ok jamsek, stsp
- Commit:
214d733a8e368034e6afa52b6c9ac25e071fd0c7
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
f5f71a04830c68cddf72cca7f77c8dec97451abb
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
8efb3dc0bc74c64b086dbee78912ab594bae37bd
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fmt; fold long line
- Commit:
42814e017658a8b924881e7675afac062eae984b
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
b4d10c2be91fc52b9f65798b6a4f55afbdd9f3eb
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
53bf32b82a90b42a6feff46808c401af5d59f2c6
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: turn gotweb_get_time_str into gotweb_render_age
ok jamsek
- Commit:
502374853d19661deb162553e55b6952a9f8d8de
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
113392cfbd4d2583badd52487063cd5f84f55518
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make read errors in gotsh serve_read() fatal and adjust tests accordingly
ok jamsek
- Commit:
23ac500059fe541c262531df0c2877bd1f547887
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
return GOT_ERR_EOF from pkt.c if a read attempt indicates EOF
ok jamsek
- Commit:
94a71055f46811ae239b1b26205482f35fbf85e9
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
only "forward" implicit flush packets in serve_read() if they are expected
ok jamsek
- Commit:
98c7fd82fde99a5be248c7268cd52d18bb9b9c4e
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make gotd session process accept just one flush packet at a time
ok jamsek
- Commit:
bd15e8743449326cd8804a431fae3c2183344ea1
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
sort ENVIRONMENT entries in got.1 and tog.1
ok jamsek
- Commit:
8171e9d1b78aeeb30dbeb9e44404439ebe306471
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: set next version
- Commit:
9e39ef14fdffdd15177e9de2c7a0fb3897813452
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: release 0.81
- Commit:
9981e8e3868ca975b4732becdc01897770c0dfbe
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: template: use as a subproject
Move template into its own subproject as it's only needed at
compile-time and shouldn't be installed.
This needs compiling with the host compiler which is configurable via
HOSTCC and HOSTCLFAG environment variables.
This diff largely from op@ but additional tweaking from myself.
- Commit:
873716fa3610403d77fc93fdadb599b66e240f2e
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd.8: sort -d after -D
patch by Josiah Frentsos, thanks!
- Commit:
30f1b1d205189d1150cad9a824dd6929fa3b83dc
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotd.8, gotwebd.8: new sentence, new line
diff from Josiah Frentsos, thanks!
- Commit:
693bff59e72660e841c2750fd421ebff5f3f71b2
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
add missing bounds-check in gitproto ref-line tokenizer
- Commit:
a8771ebd4482e832a941f8041ee67663418111f9
- From:
- Mark Jamsek <mark@jamsek.dev>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix typo: overlapping comparison always evaluates false
ok stsp@
- Commit:
eed705606091622e7cf0c62cc3b853aa184750f9
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
bump version number
- Commit:
09b9426f6dc689af9ac3f88a3bf7efdfc5c04719
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
changes for 0.81
- Commit:
cbe4991f6522bdf0e348a5e5b9db375c0a21d70a
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
have 'make clean' traverse into regress/gotd in order to remove gotd.conf
- Commit:
f86347934ff76ae677658de3bd1b5d0e9d02a9a6
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix ambiguous phrasing of -d option documentation
- Commit:
c855c9f037399e518322eeca99fb2944103555a1
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
document the gotd -n option