Skip to content

Commit

Permalink
test "git clone -o"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Dec 19, 2007
1 parent 9d81e03 commit ecaa0cf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions t/t5702-clone-options.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh

test_description='basic clone options'
. ./test-lib.sh

test_expect_success 'setup' '
mkdir parent &&
(cd parent && git init &&
echo one >file && git add file &&
git commit -m one)
'

test_expect_success 'clone -o' '
git clone -o foo parent clone-o &&
(cd clone-o && git rev-parse --verify refs/remotes/foo/master)
'

test_done

0 comments on commit ecaa0cf

Please sign in to comment.