Commits
- Commit:
1bd35332a599d65566a5fab8c0ff0eb6201812ff
- From:
- Stefan Sperling <stsp@stsp.name>
- 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:
b883aee3556b3841004d3b1ec76cb0d26de420b0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
update got.conf(5) remote config example from git.g.o to got.g.o
- Commit:
b3fabc965e73df1255fb6fe1c1ca6d3452a6264e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-notify-http: consistetly use fatal instead of err
- Commit:
8aebbd0a7057d6129ac03dd30732374167048488
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-notify-http: make unexpected EOF more useful
- Commit:
a0769bb1e683876bd26ba4c2cc83e3e35db8111f
- From:
- Stefan Sperling <stsp@stsp.name>
- 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:
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