summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-04-28 04:47:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-04-28 04:47:51 (GMT)
commit633d1fe9d0f8993c4e0ceb9d166a550344cbe5f9 (patch)
tree85c9fc7d124b0977629dc4128162e28bed53a8cc /t
parent07ba53f724b95a817f957b8e943c9e4f545a0949 (diff)
parenta2b26acd7afb4d77d8844ccd681e993f25e75205 (diff)
downloadgit-633d1fe9d0f8993c4e0ceb9d166a550344cbe5f9.zip
git-633d1fe9d0f8993c4e0ceb9d166a550344cbe5f9.tar.gz
git-633d1fe9d0f8993c4e0ceb9d166a550344cbe5f9.tar.bz2
Merge branch 'maint'
* maint: clone: detect and fail on excess parameters Remove 'header' from --signoff option description
Diffstat (limited to 't')
-rwxr-xr-xt/t5601-clone.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh
new file mode 100755
index 0000000..dc9d63d
--- /dev/null
+++ b/t/t5601-clone.sh
@@ -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