mirror of
https://github.com/git/git.git
synced 2026-04-05 06:20:09 +02:00
The test failures are fixed meanwhile for various reasons: - Path mangling happens less often due to an updated MSYS-1.0.DLL. - pwd now always reports a Windows-style path (this was introduced in4114156a). - The whitespace breakage in t1003 has mysteriously disappeared (perhaps due to a tool upgrade?) - The work-around in t4116 was fixed in36adb4ab. Signed-off-by: Johannes Sixt <j6t@kdbg.org>
28 lines
412 B
Bash
Executable File
28 lines
412 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright (c) 2006 Junio C Hamano
|
|
#
|
|
|
|
test_description='git read-tree --prefix test.
|
|
'
|
|
|
|
. ./test-lib.sh
|
|
|
|
test_expect_success setup '
|
|
echo hello >one &&
|
|
git update-index --add one &&
|
|
tree=`git write-tree` &&
|
|
echo tree is $tree
|
|
'
|
|
|
|
echo 'one
|
|
two/one' >expect
|
|
|
|
test_expect_success 'read-tree --prefix' '
|
|
git read-tree --prefix=two/ $tree &&
|
|
git ls-files >actual &&
|
|
cmp expect actual
|
|
'
|
|
|
|
test_done
|