diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-02-03 15:04:49 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-03 15:04:49 -0800 |
commit | 973e20b83f38d0a640d4e0478ddbd50dfa98daf1 (patch) | |
tree | 6cf89c7e061f25e00153b64af2dc1736c98337f9 /t/t1406-submodule-ref-store.sh | |
parent | 6cd7f9dc297d096e5b7787db8d0ad8ca05a1b296 (diff) | |
parent | 36a317929b8f0c67d77d54235f2d20751c576cbb (diff) | |
download | git-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-x | t/t1406-submodule-ref-store.sh | 10 |
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 ' |