3 test_description
='git ls-remote'
7 say
"git remote does not work in t/ - skipping"
10 test_expect_success setup
'
15 git commit -m initial &&
17 git show-ref --tags -d | sed -e "s/ / /" >expected.tag &&
19 echo "$(git rev-parse HEAD) HEAD"
20 git show-ref -d | sed -e "s/ / /"
23 git remote add self "$(pwd)/.git"
27 test_expect_success
'ls-remote --tags .git' '
29 git ls-remote --tags .git >actual &&
30 test_cmp expected.tag actual
34 test_expect_success
'ls-remote .git' '
36 git ls-remote .git >actual &&
37 test_cmp expected.all actual
41 test_expect_success
'ls-remote --tags self' '
43 git ls-remote --tags self >actual &&
44 test_cmp expected.tag actual
48 test_expect_success
'ls-remote self' '
50 git ls-remote self >actual &&
51 test_cmp expected.all actual