Commits
- Commit:
5a4304006707470fa37d4bf797a46adc0a0216ea
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
regress: make server tests more robust against race hazard
Add a delay after starting the server background process to keep
server and client from racing against each other, which would lead
to failures when the client ran before the server.
ok op
- Commit:
841969e1ced43e1e9e2d6c8e3b22541e24337eb9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-notify-http: rename auth_user -> authenticated_user
ok stsp@
- Commit:
c3cc85a3c5ab8491266b207eeb1fb6b6061274ed
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make gotd notifications work when 'git push' is used instead of 'got send'
Git clients disconnect earlier, which resulted in session_write exiting before
notifications were sent. Do not treat early EOF as a fatal error if we are
sending notifications. Add regression test coverage for 'git push'.
Problem found by Thomas Adam.
- Commit:
d36998aec867c8134466eccfe048dc8671eecca5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
expose authenticated gotd user account in HTTP notifications
ok op@
- Commit:
939d3016601d8c21e69a605f10838024335f3b1a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-notify-http: use a UNIX timestamp for the date
Was suggested by Lucas some time ago. ok stsp@ with a tweak in the
manual.
- Commit:
050c0b8ca3bc56e34b304d886ed11ec58badadf2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-notify-http: implement basic authentication
ok stsp
- Commit:
c1003102a22a77d068a14f9ffa7877f67c28e95d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-notify-http: add the repository name in the json
ok stsp
- Commit:
166674b8808a9a16a3cff59d166410cd37833014
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix gotd notification test failures due to missing shell quoting
The expected output generated by test scripts was wrong on days
with a single-digit date. Found by Omar's regress builder.
ok op@
- Commit:
763b7f49146da1df5142d9f88651f4516b1d1a88
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-notify-http: parse diffstat; adjust tag/commit
- Commit:
cd18253299922842254cc506eb7fa85be402962d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add test_tag_changed() for got-notify-http
at the moment it is indistinguishable from the created tag.
- Commit:
553d83475bd124e7e5ba693c5ae9313d21d2139b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-notify-http: handle new tags
- Commit:
d60570848cd614b529f720c17d37d54c77dd5949
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-notify-http: handle branch removals
- Commit:
914bfd3ddbdf1adc0adf828c7531b8174b6b2010
- From:
- Omar Polo <op@omarpolo.com>
- Date:
http_notification.sh: add a testcase
add test_branch_created(). at the moment this is not different
from a "normal" commit notification but it'll change in the future
and it's handy to have it for an upcoming branch removed notification.
- Commit:
936239010f884c916c0f8680490fea91813b5334
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-notify-http: add a type:commit field in the json
will help to differentiate these notification objects from the
others.
- Commit:
ac0a4dfc3547f38c3fe0544f329f3c7bded24010
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-notify-http: change the layout of the json
Split the author/committer in sub-fields, rename author -> committer
in the short format parser and cache the author for the long format
in case it's the same user as the committer. Put a copy of the
first line of the commit message in the "short_message" field.
There's some redundancy now, but it's to make consuming easier.
ok stsp@
- Commit:
cdaefb15ec98f4140621e87d6e7a2526ce29c495
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix typo in a comment
- Commit:
ea5e974da9b1047689411a00ecc0a9c1fb101d73
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-notify-http: fix unicode handling
JSON strings are made of UNICODE codepoints, of which only \, " and
control characters have to be escaped, and the whole document MUST
be encoded in UTF-8. The current code generates invalid strings
for non-ASCII characters, so it has to be made UTF-8 aware.
tedu' isu8cont() can't be used since it allows surrogate pairs and
overlong sequences which will cause decoding errors on the receiving
side. Similarly, mbtowc() depends on the current locale and could
cause issues in -portable.
Instead, bundle Björn Höhrmann's "Flexible and Economical UTF-8
Decoder" and use it to parse the text. Decoding errors results in
the replacement character U+FFFD being emitted and the bytes
considered so far to be discarded; the decoder is then restarted
with the next byte.
Git commit messages don't carry the notion of the encoding, but
it's reasonable to expect UTF-8 (which is a superset of ASCII).
For other more esotic encodings, the commit id can be used to
manually extract the data.
ok stsp@
- Commit:
87890bc26c1c6958bd64bb9d46fbc29ba6a92d95
- From:
- Omar Polo <op@omarpolo.com>
- Date:
http_notification regress: prettify the json
long lines are not manegeable. split the json over multiple lines,
then use ed to join everything back in a single one.
- Commit:
9e88f9d9a5df5ab1462296b2ba998f33a1c56ea4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
regress: http-server: hide the HTTP headers
The http-server script is already validating the headers, doing so
in the regress too is not helpful.
- Commit:
5565365ce71d431c522f98b121706b13c4bf2d22
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add got-notify-http
ok stsp@