summaryrefslogtreecommitdiff
path: root/t/t9133-git-svn-nested-git-repo.sh
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2023-11-02 09:46:49 +0100
committerJunio C Hamano <gitster@pobox.com>2023-11-03 08:37:06 +0900
commit239371168173da9a9556617fced1e053ac618a85 (patch)
treea1477b7e865be87a040c01be3cf5eaadfb699432 /t/t9133-git-svn-nested-git-repo.sh
parent1c6667cb9dab6f90dcc3381676b50b1f131aeda5 (diff)
t: convert tests to not access symrefs via the filesystem
Some of our tests access symbolic references via the filesystem directly. While this works with the current files reference backend, it this will break once we have a second reference backend in our codebase. Refactor these tests to instead use git-symbolic-ref(1) or our `ref-store` test tool. The latter is required in some cases where safety checks of git-symbolic-ref(1) would otherwise reject writing a symbolic reference. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9133-git-svn-nested-git-repo.sh')
-rwxr-xr-xt/t9133-git-svn-nested-git-repo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9133-git-svn-nested-git-repo.sh b/t/t9133-git-svn-nested-git-repo.sh
index d8d536269c..8ca24670ac 100755
--- a/t/t9133-git-svn-nested-git-repo.sh
+++ b/t/t9133-git-svn-nested-git-repo.sh
@@ -11,7 +11,7 @@ test_expect_success 'setup repo with a git repo inside it' '
(
cd s &&
git init &&
- test -f .git/HEAD &&
+ git symbolic-ref HEAD &&
> .git/a &&
echo a > a &&
svn_cmd add .git a &&