3 test_description
='git ls-remote'
7 test_expect_success setup
'
12 git commit -m initial &&
14 git show-ref --tags -d | sed -e "s/ / /" >expected.tag &&
16 echo "$(git rev-parse HEAD) HEAD"
17 git show-ref -d | sed -e "s/ / /"
20 git remote add self "$(pwd)/.git"
24 test_expect_success
'ls-remote --tags .git' '
26 git ls-remote --tags .git >actual &&
27 test_cmp expected.tag actual
31 test_expect_success
'ls-remote .git' '
33 git ls-remote .git >actual &&
34 test_cmp expected.all actual
38 test_expect_success
'ls-remote --tags self' '
40 git ls-remote --tags self >actual &&
41 test_cmp expected.tag actual
45 test_expect_success
'ls-remote self' '
47 git ls-remote self >actual &&
48 test_cmp expected.all actual