Skip to content

Commit

Permalink
fixup! builtin/gc: fix crash when running git maintenance start
Browse files Browse the repository at this point in the history
  • Loading branch information
derrickstolee committed Oct 9, 2024
1 parent 6138534 commit 94f58ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/t7900-maintenance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -652,11 +652,12 @@ test_expect_success 'start without GIT_TEST_MAINT_SCHEDULER' '
write_script script/crontab <<-EOF &&
echo "\$*" >>"$(pwd)"/crontab.log
EOF
PATHADD="$(pwd)/script" &&
git init repo &&
(
cd repo &&
sane_unset GIT_TEST_MAINT_SCHEDULER &&
PATH="$(pwd)/../script:$PATH" git maintenance start --scheduler=crontab
PATH="$PATHADD:$PATH" git maintenance start --scheduler=crontab
) &&
test_grep -- -l crontab.log &&
test_grep -- git_cron_edit_tmp crontab.log
Expand Down

0 comments on commit 94f58ee

Please sign in to comment.