summaryrefslogtreecommitdiffstats
path: root/t/t4013-diff-various.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-12-10 01:37:49 +0100
committerJunio C Hamano <gitster@pobox.com>2023-12-10 01:37:49 +0100
commit340581bcf11bd6e85f87af1d732c898885929e90 (patch)
tree36f0f8d6ab2b3cbb2d9a41edf228d6a833f772a0 /t/t4013-diff-various.sh
parentMerge branch 'jw/git-add-attr-pathspec' (diff)
parentt: mark several tests that assume the files backend with REFFILES (diff)
downloadgit-340581bcf11bd6e85f87af1d732c898885929e90.tar.xz
git-340581bcf11bd6e85f87af1d732c898885929e90.zip
Merge branch 'ps/ref-tests-update'
Update ref-related tests. * ps/ref-tests-update: t: mark several tests that assume the files backend with REFFILES t7900: assert the absence of refs via git-for-each-ref(1) t7300: assert exact states of repo t4207: delete replace references via git-update-ref(1) t1450: convert tests to remove worktrees via git-worktree(1) t: convert tests to not access reflog via the filesystem t: convert tests to not access symrefs via the filesystem t: convert tests to not write references via the filesystem t: allow skipping expected object ID in `ref-store update-ref`
Diffstat (limited to 't/t4013-diff-various.sh')
-rwxr-xr-xt/t4013-diff-various.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t4013-diff-various.sh b/t/t4013-diff-various.sh
index 5cc17c2e0d..c4d508e00a 100755
--- a/t/t4013-diff-various.sh
+++ b/t/t4013-diff-various.sh
@@ -522,7 +522,7 @@ test_expect_success 'log -S requires an argument' '
'
test_expect_success 'diff --cached on unborn branch' '
- echo ref: refs/heads/unborn >.git/HEAD &&
+ git symbolic-ref HEAD refs/heads/unborn &&
git diff --cached >result &&
process_diffs result >actual &&
process_diffs "$TEST_DIRECTORY/t4013/diff.diff_--cached" >expected &&