Windows ANSI - hook write()
[git/mingw/4msysgit/peterh.git] / t / t5512-ls-remote.sh
blob2b9e5aa44403b3110273b619e0727da13421d362
1 #!/bin/sh
3 test_description='git ls-remote'
5 . ./test-lib.sh
7 say "git remote does not work in t/ - skipping"
8 test_done
10 test_expect_success setup '
12 >file &&
13 git add file &&
14 test_tick &&
15 git commit -m initial &&
16 git tag mark &&
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/ / /"
21 ) >expected.all &&
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
55 test_done