git/t/t5601-clone.sh
Johannes Schindelin a73bc1275b builtin-clone: fix initial checkout
Somewhere in the process of finishing up builtin-clone, the update of
the working tree was lost.  This was due to not using the option "merge"
for unpack_trees().

Breakage noticed by Kevin Ballard.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Tested-by: Jeff King <peff@peff.net>
Acked-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2008-05-15 15:05:00 -07:00

34 lines
406 B
Bash
Executable file

#!/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_expect_success 'clone checks out files' '
git clone src dst &&
test -f dst/file
'
test_done