Files
git/t/t1003-read-tree-prefix.sh
Johannes Sixt d4eb98cede Undo MinGW specific test suite changes that are no longer needed
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 in
  4114156a).

- The whitespace breakage in t1003 has mysteriously disappeared (perhaps
  due to a tool upgrade?)

- The work-around in t4116 was fixed in 36adb4ab.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
2009-03-23 09:58:44 +01:00

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