mirror of
https://github.com/git/git.git
synced 2024-12-11 10:54:21 +08:00
a73bc1275b
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>
34 lines
406 B
Bash
Executable File
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
|