Git fork
at reftables-rust 17 lines 432 B view raw
1#!/bin/sh 2 3test_description='git refs optimize should not change the branch semantic 4 5This test runs git refs optimize and git show-ref and checks that the branch 6semantic is still the same. 7' 8 9GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main 10export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME 11GIT_TEST_DEFAULT_REF_FORMAT=files 12export GIT_TEST_DEFAULT_REF_FORMAT 13 14. ./test-lib.sh 15 16pack_refs='refs optimize' 17. "$TEST_DIRECTORY"/pack-refs-tests.sh