worktree: handle broken symrefs in find_shared_symref()
[git.git] / t / interop / i0000-basic.sh
blob903e9193f8c3932e70329e46f4bef7fd7c39e804
1 #!/bin/sh
3 # Note that this test only works on real version numbers,
4 # as it depends on matching the output to "git version".
5 VERSION_A=v1.6.6.3
6 VERSION_B=v2.11.1
8 test_description='sanity test interop library'
9 . ./interop-lib.sh
11 test_expect_success 'bare git is forbidden' '
12 test_must_fail git version
15 test_expect_success "git.a version ($VERSION_A)" '
16 echo git version ${VERSION_A#v} >expect &&
17 git.a version >actual &&
18 test_cmp expect actual
21 test_expect_success "git.b version ($VERSION_B)" '
22 echo git version ${VERSION_B#v} >expect &&
23 git.b version >actual &&
24 test_cmp expect actual
27 test_done