Skip to content

Commit 94f58ee

Browse files
committed
fixup! builtin/gc: fix crash when running git maintenance start
1 parent 6138534 commit 94f58ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/t7900-maintenance.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,11 +652,12 @@ test_expect_success 'start without GIT_TEST_MAINT_SCHEDULER' '
652652
write_script script/crontab <<-EOF &&
653653
echo "\$*" >>"$(pwd)"/crontab.log
654654
EOF
655+
PATHADD="$(pwd)/script" &&
655656
git init repo &&
656657
(
657658
cd repo &&
658659
sane_unset GIT_TEST_MAINT_SCHEDULER &&
659-
PATH="$(pwd)/../script:$PATH" git maintenance start --scheduler=crontab
660+
PATH="$PATHADD:$PATH" git maintenance start --scheduler=crontab
660661
) &&
661662
test_grep -- -l crontab.log &&
662663
test_grep -- git_cron_edit_tmp crontab.log

0 commit comments

Comments
 (0)