23 lines
351 B
Bash
23 lines
351 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
test_description='basic clone options'
|
||
|
. ./test-lib.sh
|
||
|
|
||
|
test_expect_success 'setup' '
|
||
|
|
||
|
mkdir parent &&
|
||
|
(cd parent && git init &&
|
||
|
echo one >file && git add file &&
|
||
|
git commit -m one)
|
||
|
|
||
|
'
|
||
|
|
||
|
test_expect_success 'clone -o' '
|
||
|
|
||
|
git clone -o foo parent clone-o &&
|
||
|
(cd clone-o && git rev-parse --verify refs/remotes/foo/master)
|
||
|
|
||
|
'
|
||
|
|
||
|
test_done
|