Skip to content

Commit ecaa0cf

Browse files
peffgitster
authored andcommitted
test "git clone -o"
This tests a recently fixed regression in which "git clone -o" didn't work at all. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 9d81e03 commit ecaa0cf

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

t/t5702-clone-options.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
3+
test_description='basic clone options'
4+
. ./test-lib.sh
5+
6+
test_expect_success 'setup' '
7+
8+
mkdir parent &&
9+
(cd parent && git init &&
10+
echo one >file && git add file &&
11+
git commit -m one)
12+
13+
'
14+
15+
test_expect_success 'clone -o' '
16+
17+
git clone -o foo parent clone-o &&
18+
(cd clone-o && git rev-parse --verify refs/remotes/foo/master)
19+
20+
'
21+
22+
test_done

0 commit comments

Comments
 (0)