mirror of
https://github.com/git/git.git
synced 2024-11-09 02:33:11 +01: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>
33 lines
406 B
Bash
Executable file
33 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
|