mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
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:
@@ -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)' '
|
||||
|
||||
Reference in New Issue
Block a user