]> git.ipfire.org Git - thirdparty/git.git/blame - t/t5601-clone.sh
Merge branch 'jc/maint-combine-diff-pre-context' into maint
[thirdparty/git.git] / t / t5601-clone.sh
CommitLineData
a2b26acd
JH
1#!/bin/sh
2
3test_description=clone
4
5. ./test-lib.sh
6
7test_expect_success setup '
8
9 rm -fr .git &&
10 test_create_repo src &&
11 (
12 cd src
13 >file
14 git add file
15 git commit -m initial
16 )
17
18'
19
20test_expect_success 'clone with excess parameters' '
21
22 test_must_fail git clone -n "file://$(pwd)/src" dst junk
23
24'
25
a73bc127
JS
26test_expect_success 'clone checks out files' '
27
28 git clone src dst &&
29 test -f dst/file
30
31'
32
a2b26acd 33test_done