t2200: Avoid glob pattern that also matches files
commit563478c3f83be93ab369368c5a418d7f75941594
authorJohannes Sixt <j6t@kdbg.org>
Mon, 9 Feb 2009 09:24:51 +0000 (9 10:24 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Mon, 9 Feb 2009 09:25:44 +0000 (9 10:25 +0100)
treedc6a8ae7b2f99d30feaa8eee7365881e35264740
parent0d1c4acba7a9d5119ab0019b61560c18af1a37b4
t2200: Avoid glob pattern that also matches files

On Windows, there is an unfortunate interaction between the MSYS bash and
git's command line processing:

- Since Windows's CMD does not do the wildcard expansion, but passes
  arguments like path? through to the programs, the programs must do the
  expansion themselves. This happens in the startup code before main() is
  entered.

- bash, however, passes the argument "path?" to git, assuming that git will
  see the unquoted word unchanged as a single argument.

But actually git expands the unquoted word before main() is entered.

Since at the time when the git ls-files is invoked not all names that the
test case is interested in exist as files, only a subset was listed, so
that the test failed. We now list all interesting paths explicitly.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
t/t2200-add-update.sh