Commits
- Commit:
24ea83537ef6d644d2808e100f1c0400de8fab08
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
CHANGES for 0.114
- Commit:
2032130aa35c234e5e508afd485a6996ed2e91d8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
plug a file descriptor leak in the gotsysd libexec process
- Commit:
50f1d7bec5bdd5acea20392af171a75c41deef1a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid event_loopexit() in gotsysd libexec event handlers when flushing
It seems flushing our final message can fail if we forcefully exit
the event loop here. This would leave gotsysd's sysconf process stuck
in a state where it was waiting for a message which never arrived.
- Commit:
c5e96df445562a55ab4860771be8f33067b8e74f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use imsgbuf_flush() instead of gotsysd_imsg_flush() in libexec event handlers
The gotsysd_imsg_flush() wrapper enforces a sync write by polling the
file descriptor and writing data in a loop. Since libevent already does
polling for us we can simply use imsgbuf_flush() here instead.
- Commit:
1201b9f16463d60ae02d48c1bddb9d8f7515a824
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid flushing messages in got_imsg_ helper functions, just buffer them
- Commit:
57d2e5fcd020b3a026b9aef19437116e3f489407
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make sure gotsysd libexec helpers flush all pending messages before exiting
- Commit:
5f1975fcf4dc127d226eacd7bb6ca411c4b3bfcf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
always consume authorized keys messages in gotsys-userkeys
THe main process will always send these messages so don't skip
parsing them even if we are going to ignore the current user.
- Commit:
af490b2c935de6beea6095b770c38ce7bde92a8e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add gotsys apply -w option which waits until sysconf has been run
- Commit:
bd2d269200403f8168de26b8229d7c30de792d3b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
stop running ssh with -q by default
The -q option suppresses too many important errors, including the
warning printed when a host key has changed. Requiring users to
pass -v in order to see this message is too cumbersome.
- Commit:
3c19677a54399d8e5b3df40f66c5db79532bcf6e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
build and install gotwebd in gotsysd regress VMs
- Commit:
e339aba5a8f332c98d0fa01f1d9a5096e89c6045
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove an obvious comment; expected output already shows "+0000" i.e. UTC
- Commit:
74735c56c8d10b7e8062f5f5e5b7b15f7fc58558
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
untangle committer and author_time parameters of got_worktree_commit()
Make the semantics of the author_time parameter self-contained by
treating author_time == 0 as the fallback case, instead of treating
committer == NULL as the fallback case. Having the semantics of one
parameter depend on the semantics of another might lead to subtle
bugs introduced during potential future refactoring of this code.
- Commit:
f9d1117339630f1ef508a9db8fd3d832061ad605
- From:
- "Sven M. Hallberg" <pesco@khjk.org>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
cvg: add author_time argument to got_worktree_cvg_commit()
No functional change, but keeps the code in sync with got.
Patch by Sven M. Hallberg
- Commit:
02a9e99535e18f69e38c094b381dbd90621a2783
- From:
- "Sven M. Hallberg" <pesco@khjk.org>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
got rebase: preserve author timestamps
Adds test_rebase_preserves_author_data to regress/cmdline/rebase.sh.
Patch by Sven M. Hallberg
- Commit:
8c25a0e66cb5f6ea96b120f8e80703e83a6ce85e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
relax repository path permission checks in gotsys-repo-create
Since gotwebd can now be given read access to gotd repositories
by making the directory readable for the _gotwebd group, these
checks are too strict. Stop requiring a specific GID, and allow
group rx bits to be set for group read access.
As before, keep rejecting world/other rwx bits for safety.
Read access to repositories is supposed to be managed by gotd.
- Commit:
d77bec5ef230c9b6f65f6e2c10ed84ffc379ae22
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix gotsys-read-conf crash when ssh key comments are missing in gotsys.conf
Add test coverage for this issue.
- Commit:
8c3d2a37a5bc641f77f3b9b05b64a7be841a9450
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
bump version number
- Commit:
4688fbd6c702430b4f90aa4db74b1e2f113ad942
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
CHANGES for 0.113
- Commit:
9925e94074a73e68c23232d9db686bdee44ebae6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix a race in gotd notification processing
Dequeue notifications from the list only once the notify process has
confirmed that the notification has been sent. This should be more
robust for the following reason:
In some spots were are checking the list head against NULL to see if
any notifications are still pending. By removing notifications from
this list too early, this check did not cover notifications which were
still in flight. We could thus end up deciding to shut down the session
process too early, and the last notification of several would fail.
Issue observed when sending a new commit on a branch and a new tag
which tags this commit to gotd in a single 'got send' operation.
Only the tag notification would make it, while the other notification
never arrived after an 'unexpected EOF' error in the notify process
while trying to send a confirmation to the session process.
ok op@
- Commit:
d907758cbe632fc02ea32fa9363f1b427ed21c32
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix bogus "unexpected privsep message" from gotsh during "got send"
Ensure that gotsh receives its end of the pack file data pipe
before repo_write starts sending pack file status messages.
Messages of type GOTD_IMSG_PACKFILE_StATUS would end up being
received in gotsh's serve_write() function too early.
This race is similar to the one fixed for repo_read back in commit
c2274a511a7415078e2628f969b8459f69432411
Reported by martijn@, who pin-pointed the problematic case in the code, thanks!
- Commit:
277ed191b926ae1e6b7ca037f3304903aa162828
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix default access for root and _gotd when gotsysd runs without config file
- Commit:
15cc6a0a0dfee48d9c101a5e4e589e3cb55ad343
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
gotwebd: do not forget to initialize *ngroups argument for getgrouplist()
spotted by Denis Bodor, thanks!
- Commit:
e2bc7eacc7fc0b0bb7659f08d380c3c7c4397890
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
whitespace fix; spotted by op@
- Commit:
22941965a71a75c83d27356f833ea780bb226975
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
improve redundant pack detection during cleanup
Instead of storing all referenced object IDs in a set, use the pack index
of the large pack file we have created to check whether an object exists.
Apply the modification time check only to packs which contain unreferenced
objects. Otherwise we can leave many duplicate pack files behind. I observed
this when all refs were packed and the packed-refs file was days old.
ok op@
- Commit:
1b11aa0ac1ed83c510d6c78fc5279380dbcebe73
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use got_path_cmp() instead of strcmp() in pack_info_cmp()
ok op@