[PATCH 09/12] t1503: move reffiles specific tests to t0600
- From
John Cai via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Jan 17, 2024, 19:52 UTC
- Message-ID
- <dcec7f10ab67f33dd0de87e74698cd222f18603f.1705521155.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.1647.git.git.1705521155.gitgitgadget@gmail.com>
From: John Cai <johncai86@gmail.com>
Move this test to t0600 with other reffiles specific tests since it checks for loose refs and is specific to the reffiles backend.
Signed-off-by: John Cai <johncai86@gmail.com> --- t/t0600-reffiles-backend.sh | 5 +++++ t/t1503-rev-parse-verify.sh | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/t/t0600-reffiles-backend.sh b/t/t0600-reffiles-backend.sh index 8526e5cf987..704b73fdc54 100755 --- a/t/t0600-reffiles-backend.sh +++ b/t/t0600-reffiles-backend.sh @@ -522,4 +522,9 @@ test_expect_success 'refs/worktree must not be packed' ' test_path_is_file .git/worktrees/wt2/refs/worktree/foo ' +test_expect_success SYMLINKS 'ref resolution not confused by broken symlinks' ' + ln -s does-not-exist .git/refs/heads/broken && + test_must_fail git rev-parse --verify broken +' + test_done diff --git a/t/t1503-rev-parse-verify.sh b/t/t1503-rev-parse-verify.sh index bc136833c10..79df65ec7f6 100755 --- a/t/t1503-rev-parse-verify.sh +++ b/t/t1503-rev-parse-verify.sh @@ -144,11 +144,6 @@ test_expect_success 'main@{n} for various n' ' test_must_fail git rev-parse --verify main@{$Np1} ' -test_expect_success SYMLINKS,REFFILES 'ref resolution not confused by broken symlinks' ' - ln -s does-not-exist .git/refs/heads/broken && - test_must_fail git rev-parse --verify broken -' - test_expect_success 'options can appear after --verify' ' git rev-parse --verify HEAD >expect && git rev-parse --verify -q HEAD >actual &&
-- gitgitgadget