mirror of
https://github.com/git/git.git
synced 2026-02-13 19:31:58 +00:00
t9902: mingw-specific fix for gitfile link files
The path in a .git platform independent link file needs to be absolute and under mingw we need it to be a windows type path, not a unix style path so it should start with a drive letter and not a /. Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
This commit is contained in:
@@ -213,8 +213,8 @@ test_expect_success '__gitdir - non-existing $GIT_DIR' '
|
||||
'
|
||||
|
||||
test_expect_success '__gitdir - gitfile in cwd' '
|
||||
echo "$(pwd -P)/otherrepo/.git" >expected &&
|
||||
echo "gitdir: $TRASH_DIRECTORY/otherrepo/.git" >subdir/.git &&
|
||||
echo "$(pwd -W)/otherrepo/.git" >expected &&
|
||||
echo "gitdir: $(pwd -W)/otherrepo/.git" >subdir/.git &&
|
||||
test_when_finished "rm -f subdir/.git" &&
|
||||
(
|
||||
cd subdir &&
|
||||
@@ -224,8 +224,8 @@ test_expect_success '__gitdir - gitfile in cwd' '
|
||||
'
|
||||
|
||||
test_expect_success '__gitdir - gitfile in parent' '
|
||||
echo "$(pwd -P)/otherrepo/.git" >expected &&
|
||||
echo "gitdir: $TRASH_DIRECTORY/otherrepo/.git" >subdir/.git &&
|
||||
echo "$(pwd -W)/otherrepo/.git" >expected &&
|
||||
echo "gitdir: $(pwd -W)/otherrepo/.git" >subdir/.git &&
|
||||
test_when_finished "rm -f subdir/.git" &&
|
||||
(
|
||||
cd subdir/subsubdir &&
|
||||
|
||||
Reference in New Issue
Block a user