Commits
- Commit:
bdf7ef6f884f541cbc9915752a2667570b3572c5
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
expose authenticated gotd user account in HTTP notifications
ok op@
- Commit:
a6cc387fec23bd4635f8b81cc025832da261d1ef
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
regress: use standard shell idiom for default values
- Commit:
f56b35c7424f6ed0d598c12e78d16d5ed81d39d8
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: add the magic ".git" handling
like gotd, assume an implicit ".git" if the repo doesn't exist.
Merge gotweb_init_repo_dir() and gotweb_load_got_path() since the
former only sets repo_dir->name, and we don't realistically know
the name until we've opened the directory.
While here, unbreak the git worktree handling too.
Realistically, moving forward, we should issue a redirect to the
canonical URL or at least set the correct metadata in the document
to avoid having multiple URLs for the same content.
ok stsp; tiny change to repo_dir->name handling done after the ok.
- Commit:
74a9db5be05852a3ee9150fce2e80c8440b0afe3
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
regress: allow to customize GOT_TEST_HTTP_PORT
- Commit:
f571fea2849dfbb5568180ac8140282f5bc6b351
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
redo "got-fetch-http: fix GET request URL", without breaking tests
My previous fix for ~user in SSH URLs broke ~user in HTTP URLs,
as used on sourcehut. Sanitize the amount of leading and embedded
slashes in URLs to make things work in all cases.
The root cause of the test problem with naddy's previous diff was
likely in the http-server script itself, where a request like
GET //repo//info/refs?service=git-upload-pack somehow ended up as
GET $testroot///info/refs. We work around this here by avoiding
the double slashes.
- Commit:
c7d1a4d98cf513b3015d80f6948b25aad5929a17
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
got-fetch-http: backout GET request URL fix
It broke the clone regression test.
- Commit:
1bce54cf7c1889402aca9736b413efdb45ed1b71
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
got-fetch-http: fix GET request URL
Add a leading '/' and do not produce a double "//" after the path.
ok op
- Commit:
3779dc8f300635352ce960e273f33f50177b83aa
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
backout got stage -R option addition
The stage command is usually used in a recursive manner, like 'got commit'.
Forcing users to specify -R all the time is deemed too inconvenient in
practice.
discussed on IRC with Lorenz (xha), Omar, and Lucas
- Commit:
c02f62d5c95274029a4a00e1aa97ef0d3f9bbeec
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix an fd leak in gotd's notify process
This leak resulted in the gotd notify process spinning on CPU in
an imsg_read() -> EAGAIN loop once it ran out of file descriptors.
- Commit:
2671aa26ceb0757e1fb1cc55b6d0571b592f5483
- From:
- James Cook <falsifian@falsifian.org>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix previous: "ssh" accidentally named "git"
- Commit:
a2dbf179c83e4b4b4268d26b32332ce3f25ed209
- From:
- James Cook <falsifian@falsifian.org>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
update protocol lists
Document http and https protocols in got.conf(5). Copied from got(1)
except reworded the part that referred to got.conf(5).
Change "send directive" to "send block" in got(1), since got.conf(5)
says there's "one configuration directive per line".
Adjust table widths: longest protocol name is now "https".
- Commit:
4fab33118efc47ea9fc567c240b00008710e7607
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
got-notify-http: fix I/O with TLS (again)
We try to handle early replies from the server, so we call tls_read()
at each "tick" of the event loop.
For the TLS case, however, bufio_read() will set bio->wantev, and
if we rely only on it we can deadlock trying to read data from the
server without having sent all the request.
Found out the hard way while trying to send several notifications
in one go.
ok stsp
- Commit:
6d3ee6a573cbed36117e77d6358171ca3474fd75
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
revert part of previous commit; the parent process is not ephemeral
pointed out by op@
- Commit:
7ede118f9cfa7606ef662f8da69fb81ef6a4c8d0
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
prevent gotd notification process from exiting due to EPIPE
Ephermeral processes on the other end of a pipe might decide to exit
which results in EPIPE when writing. This is not a fatal error but is
somewhat expected during normal operation (at least until we improve
the inter-process communication about notifications).
- Commit:
38fb09f69a9a9b20b4c481cc69deda9b8326dabd
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
update got.conf(5) remote config example from git.g.o to got.g.o
- Commit:
0005db920da13753451084164884a9b32ebb9f93
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
got-notify-http: consistetly use fatal instead of err
- Commit:
655201dd7ad04bde7edbb5968c08d62a99d5fed6
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
got-notify-http: make unexpected EOF more useful
- Commit:
4c2c912121116761d73fbb528b89d7dc65aa3d32
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
portable: enable SHA256
This allows the use of native SHA256 functions.
From naddy@
- Commit:
8d2e954c7b9ef33d7c66d022729aa30d16e2aa84
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
portable: disable SHA384/SHA512
This isn't used in got, so may as well disable from compat.
From naddy@
- Commit:
ffc3cf8e5ab3659d8d1cc6fd0cc4e7c4a596db70
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
portable: CI: remove --enable-gotd flag
This is now implied; the option no longer exists.
- Commit:
797e49084be5d4629f44fb3bf8dc29eb079a112a
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
fix got-fetch-http when chunked encoding is not used
We would end up raising a spurious error when the server had no more data
to send and would abort the clone operation, while everything was fine in
fact.
Problem reported by vazub via IRC, thanks!
- Commit:
62e037f1de942562a70addbbb4695c524f660160
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
portable: README: mention libtls dependencies
- Commit:
e9ac8ffb81b959aef62a5b522a7e340da6ffd597
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
portable: compile gotd unconditionally
For some time now, gotd was only ever available if one used the
--enable-gotd flag to configure. This was fine back when gotd was still
under development -- but it's now very usable, and deserves to be
enabled by default.
- Commit:
34a6d6398b194b4b79f6e76dba083a12b8097f21
- From:
- Omar Polo <op@omarpolo.com>
- Date:
portable: sandbox got-notify-* helpers
"looks good to me" thomas
- Commit:
67356dacdf3d2007b348e723f20bbc3af06090f5
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
portable: gitwrapper: remove unused LIBS
libevent doesn't need to link against libevent, but it will need its
CFLAGS.