Commits
- 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
- Commit:
d98779cd32c7a981ee70a8e1cbcb7c544a6110b6
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
895484c861438d44537d6b4ae700e7f16274565c
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix spurious "gotsh: unexpected flush packet" error when client is up-to-date
ok op@
- Commit:
71d196c9e2bffa978977785cd8859579e78bac24
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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