]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-clone.sh
Use the modern syntax of git-diff-files in t2002-checkout-cache-u.sh
[thirdparty/git.git] / git-clone.sh
index 2636159aaa7a6278d9b8fc64b853b319ac8da123..8c7fc7f6317113fcef923dcc625fb94e13fb77a0 100755 (executable)
@@ -219,6 +219,7 @@ fi
 if test -n "$2"
 then
        dir="$2"
+       test $# = 2 || die "excess parameter to git-clone"
 else
        # Derive one from the repository name
        # Try using "humanish" part of source repo if user didn't specify one