1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 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