git-p4: clone does not use --git-dir
[git/jrn.git] / t / t9806-git-p4-options.sh
blob8044fb035e166706fc91650e72a0a9e394da4b9e
1 #!/bin/sh
3 test_description='git-p4 options'
5 . ./lib-git-p4.sh
7 test_expect_success 'start p4d' '
8 start_p4d
11 test_expect_success 'init depot' '
13 cd "$cli" &&
14 echo file1 >file1 &&
15 p4 add file1 &&
16 p4 submit -d "change 1" &&
17 echo file2 >file2 &&
18 p4 add file2 &&
19 p4 submit -d "change 2" &&
20 echo file3 >file3 &&
21 p4 add file3 &&
22 p4 submit -d "change 3"
26 test_expect_success 'clone no --git-dir' '
27 test_must_fail "$GITP4" clone --git-dir=xx //depot
30 test_expect_success 'kill p4d' '
31 kill_p4d
34 test_done