]>
Commit | Line | Data |
---|---|---|
ecaa0cff JK |
1 | #!/bin/sh |
2 | ||
3 | test_description='basic clone options' | |
4 | . ./test-lib.sh | |
5 | ||
6 | test_expect_success 'setup' ' | |
7 | ||
8 | mkdir parent && | |
9 | (cd parent && git init && | |
10 | echo one >file && git add file && | |
11 | git commit -m one) | |
12 | ||
13 | ' | |
14 | ||
15 | test_expect_success 'clone -o' ' | |
16 | ||
17 | git clone -o foo parent clone-o && | |
18 | (cd clone-o && git rev-parse --verify refs/remotes/foo/master) | |
19 | ||
20 | ' | |
21 | ||
21188b1e MV |
22 | test_expect_success 'redirected clone' ' |
23 | ||
24 | git clone "file://$(pwd)/parent" clone-redirected >out 2>err && | |
25 | test ! -s err | |
26 | ||
27 | ' | |
28 | test_expect_success 'redirected clone -v' ' | |
29 | ||
5a518ad4 TRC |
30 | git clone --progress "file://$(pwd)/parent" clone-redirected-progress \ |
31 | >out 2>err && | |
21188b1e MV |
32 | test -s err |
33 | ||
34 | ' | |
35 | ||
ecaa0cff | 36 | test_done |