mirror of
https://github.com/git/git.git
synced 2024-11-19 15:34:51 +01:00
27 lines
314 B
Bash
27 lines
314 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
test_description=clone
|
||
|
|
||
|
. ./test-lib.sh
|
||
|
|
||
|
test_expect_success setup '
|
||
|
|
||
|
rm -fr .git &&
|
||
|
test_create_repo src &&
|
||
|
(
|
||
|
cd src
|
||
|
>file
|
||
|
git add file
|
||
|
git commit -m initial
|
||
|
)
|
||
|
|
||
|
'
|
||
|
|
||
|
test_expect_success 'clone with excess parameters' '
|
||
|
|
||
|
test_must_fail git clone -n "file://$(pwd)/src" dst junk
|
||
|
|
||
|
'
|
||
|
|
||
|
test_done
|