Commits
- Commit:
9e2d05155fd66ac528765af1d592aea55ba4fe78
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-notify-http: use fatalx since errno is useless here
- Commit:
283939fb8245f1600227fa1cde3c5623666fac8d
- From:
- Lucas Gabriel Vuotto <lucas@sexy.is>
- Via:
- Omar Polo <op@omarpolo.com>
- Date:
replace date, strftime %G-%m-%d with %F
Use the more predictable %F, aka %Y-%m-%d, instead of %G-%m-%d. %G
follows the definition of ISO-8601 week-based year, which is weird.
In particular, 2024 is one of such years with weird behaviour:
$ date -jf %Y-%m-%d +"%F %G-%m-%d" 2024-12-30
2024-12-30 2025-12-30
Diff from Lucas Gabriel Vuotto (thanks!); stsp agrees
- Commit:
2c1b17802598396420e45c97fe4e8d2d03fcb523
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-notify-email: sort/remove includes
we don't need getopt.h; getopt() is in unistd.h. also sort the
headers while here. ok stsp@
- Commit:
54b37e986975e273465cf0c0d2f842d371d7f181
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'got fetch' work with URLs which refer to $HOME via a tilde ~
'got clone' already happens to support such URLs via scp-style syntax:
user@127.0.0.1:~/test.git
While the clone operation succeded, subsequent fetch operations would
raise an error: '/~/test.git' does not appear to be a git repository
Make such URLs work when they are read back from got.conf, and also on
the clone command line in canonical form:
ssh://user@127.0.0.1/~/test.git
Not adding a test case because I don't see an easy way to add test
coverage for this without spilling test data into home directories
or modifying ~/.ssh/ssh_config.
Problem found by Jesper Wallin.
- Commit:
b93f334d743a91156b4558df907bd59a0c85cf69
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
bump version number
- Commit:
6dd1428a45d4df8a4be983931f13fa7125610667
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
CHANGES for 0.98
- Commit:
0d99dd8ddd28e986ad291dcfaf37207b1b306c9e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
sync dist file list
- Commit:
27aa2674c93e2cb1cbf231640e9d2ca4969ad008
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
extend test_patch_empty_file() test coverage
Check what happens when patches attempt to edit or delete empty files.
- Commit:
04a87797cb37c4787fdc83040ba75f0ddd60e46d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got patch: fix applying on empty files
if we've reached EOF without finding a match is fine if and only
if the target file is empty, so add this exception.
reported by naddy, ok stsp
- 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:
21679dc5afe28d00d3188bb529f3cefffdb06b64
- From:
- Tobias Heider <me@tobhe.de>
- Date:
Use got_pkt_readlen() to parse pkt-lens.
- Commit:
3bafd8d444040e4f41be33562f63e5d2eb201447
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rename a function to avoid gramatical ambiguity
- Commit:
533c404ec30ef30690b8c41481cbdbbeeb8e2a5c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
ensure that test_unstage_directory calls test_done on success
- Commit:
f1f83f317abbce0e15ebf91490b1cb620e810213
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make test_stage_directory pass and actually hook it up to regress runs
- Commit:
bb068081f1967fa4f4f5c5e6db0d1065244f6539
- From:
- "Lorenz (xha)" <me@xha.li>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
require -R option for staging or unstaging directory contents
-R is needed on almost all other commands so this makes things consistent.
Patch by Lorenz (xha)
- Commit:
d7988696a5b1d45dfb72b7c44fd7647389b3432b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make got-fetch-http pass "done\n" through rather than faking it
Without this we exit the loop early and got-fetch-pack sees unexpected
end-of-file on stdout trying to write its final "done\n" message.
ok op@
- Commit:
2d5ea673b339fc394958d5cff7ed0831e314597f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
show path of got-fetch-http in execv error message
- Commit:
7e03b4680df5ee2238eb8918276b9ef7130dd115
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make got-notify-email log warnings and errors to syslog
- Commit:
b77bad152d3d77e3c5da42de272d99190e87d7b7
- From:
- Tobias Heider <me@tobhe.de>
- Date:
Move pkt-len parsing to a separate got_pkt_readlen() function
so we can reuse it in other places like got-fetch-http later.
ok op@ stsp@
- Commit:
a9d9f6e4088e82bc9a8388cda880fb5303840e28
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-notify-http: fix I/O with TLS
tls_write() may return TLS_WANT_READ. In that case, we're stuck
trying to read while we have the request still in the buffer. So,
we have to retry bufio_write() regardless of the POLLIN/POLLOUT
state.
We'd need this only in the TLS case, but in practice it doesn't
harm for the plaintext case too. In fact, we're either waiting to
flush the request or we're only reading the server reply.
ok stsp
- Commit:
02dab75a4ff7b71643c9c150a7254721785d8b0e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
sort includes in got-notify-http; suggested by op@
- Commit:
cb29e255a1aa815d0f7d47ebf0976b097d2b0515
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
send got-http-notify error output to syslog
ok op@
- Commit:
cb557a498be9d6e289166a677b1af701d8a2d36d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
set a default port for http notifications if not specified in gotd.conf
ok op@
- Commit:
55286da2a584fd52fba19447ba11921f6c3eff17
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make it harder to leak notification credentials over plaintext HTTP
ok op@
- Commit:
34d7c970d4bd3a5832ecded86f2c28e83dbba2ba
- From:
- Omar Polo <op@omarpolo.com>
- Date:
http-server: send $res in wrong method case