summaryrefslogtreecommitdiff
path: root/t/t1406-submodule-ref-store.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-02-03 15:04:49 -0800
committerJunio C Hamano <gitster@pobox.com>2021-02-03 15:04:49 -0800
commit973e20b83f38d0a640d4e0478ddbd50dfa98daf1 (patch)
tree6cf89c7e061f25e00153b64af2dc1736c98337f9 /t/t1406-submodule-ref-store.sh
parent6cd7f9dc297d096e5b7787db8d0ad8ca05a1b296 (diff)
parent36a317929b8f0c67d77d54235f2d20751c576cbb (diff)
downloadgit-973e20b83f38d0a640d4e0478ddbd50dfa98daf1.tar.gz
Merge branch 'jk/peel-iterated-oid'
The peel_ref() API has been replaced with peel_iterated_oid(). * jk/peel-iterated-oid: refs: switch peel_ref() to peel_iterated_oid()
Diffstat (limited to 't/t1406-submodule-ref-store.sh')
-rwxr-xr-xt/t1406-submodule-ref-store.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/t/t1406-submodule-ref-store.sh b/t/t1406-submodule-ref-store.sh
index a68c8f11a2..0a87058971 100755
--- a/t/t1406-submodule-ref-store.sh
+++ b/t/t1406-submodule-ref-store.sh
@@ -14,7 +14,8 @@ test_expect_success 'setup' '
(
cd sub &&
test_commit first &&
- git checkout -b new-main
+ git checkout -b new-main &&
+ git tag -a -m new-tag new-tag HEAD
)
'
@@ -22,13 +23,6 @@ test_expect_success 'pack_refs() not allowed' '
test_must_fail $RUN pack-refs 3
'
-test_expect_success 'peel_ref(new-tag)' '
- git -C sub rev-parse HEAD >expected &&
- git -C sub tag -a -m new-tag new-tag HEAD &&
- $RUN peel-ref refs/tags/new-tag >actual &&
- test_cmp expected actual
-'
-
test_expect_success 'create_symref() not allowed' '
test_must_fail $RUN create-symref FOO refs/heads/main nothing
'