Use 'pwd -W' as reference directory.

git does not know about the notation /x/dir/ec/tory that MSYS uses instead
of x:/dir/ec/tory; hence, when git's notion of an absolute path is compared
to the shell's notion, the shell must produce the x:/ kind of path.
This commit is contained in:
Johannes Sixt
2007-08-29 14:49:47 +02:00
parent 6e6b01d5d3
commit 14e86ec37e

View File

@@ -97,7 +97,7 @@ test_expect_success 'GIT_DIR & GIT_WORK_TREE (1)' '
mkdir git-dir-wt-1.git &&
GIT_WORK_TREE=$(pwd) GIT_DIR=git-dir-wt-1.git git init
) &&
check_config git-dir-wt-1.git false "$(pwd)"
check_config git-dir-wt-1.git false "$(pwd -W)"
'
test_expect_success 'GIT_DIR & GIT_WORK_TREE (2)' '