]> git.ipfire.org Git - thirdparty/git.git/commit
maintenance: fix launchctl calendar intervals
authorJosh Heinrichs <joshiheinrichs@gmail.com>
Mon, 21 Apr 2025 05:46:33 +0000 (23:46 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Apr 2025 19:58:52 +0000 (12:58 -0700)
commiteb2d7beb0e5e3823a9271a65eeeaed74a0144e2a
tree37d43e83e9fdb60364f7d0c81d76debdf6d1919f
parentf93ff170b93a1782659637824b25923245ac9dd1
maintenance: fix launchctl calendar intervals

When using the launchctl scheduler, the weekly job runs daily, and the
daily job runs on the first six days of each month. This appears to be
due to specifying "Day" in the calendar intervals, which according to
launchd.plist(5) is for specifying days of the month rather than days of
the week. The behaviour of running a job on the 0th day is undocumented,
but in my testing appears to be the same as not specifying "Day" in the
calendar interval, in which case the job will run daily.

Use "Weekday" in the calendar intervals, which is the correct way to
schedule jobs to run on specific days of the week.

Signed-off-by: Josh Heinrichs <joshiheinrichs@gmail.com>
Acked-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c