]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/test-lib.sh
Merge branch 'ds/maintenance-part-3'
[thirdparty/git.git] / t / test-lib.sh
index fa347ed3e1d476291abcb4186705543f52914d70..a863ccee7e9a6a24183cdaa8e5bdc07b20fa24ee 100644 (file)
@@ -1711,6 +1711,7 @@ test_lazy_prereq SHA1 '
 test_lazy_prereq REBASE_P '
        test -z "$GIT_TEST_SKIP_REBASE_P"
 '
+
 # Special-purpose prereq for transitioning to a new default branch name:
 # Some tests need more than just a mindless (case-preserving) s/master/main/g
 # replacement. The non-trivial adjustments are guarded behind this
@@ -1718,3 +1719,9 @@ test_lazy_prereq REBASE_P '
 test_lazy_prereq PREPARE_FOR_MAIN_BRANCH '
        test "$GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME" = main
 '
+
+# Ensure that no test accidentally triggers a Git command
+# that runs 'crontab', affecting a user's cron schedule.
+# Tests that verify the cron integration must set this locally
+# to avoid errors.
+GIT_TEST_CRONTAB="exit 1"