Browse Source
"git clone [options] $src $dst excess-garbage" simply ignored excess-garbage without giving any diagnostic message. Fix it. Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
Junio C Hamano
17 years ago
2 changed files with 27 additions and 0 deletions
@ -0,0 +1,26 @@ |
|||||||
|
#!/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 |
Loading…
Reference in new issue