Skip to content

Commit 498e5f6

Browse files
committed
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 <[email protected]>
1 parent 58166f6 commit 498e5f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/t9902-completion.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ test_expect_success '__gitdir - non-existing $GIT_DIR' '
213213
'
214214

215215
test_expect_success '__gitdir - gitfile in cwd' '
216-
echo "$(pwd -P)/otherrepo/.git" >expected &&
217-
echo "gitdir: $TRASH_DIRECTORY/otherrepo/.git" >subdir/.git &&
216+
echo "$(pwd -W)/otherrepo/.git" >expected &&
217+
echo "gitdir: $(pwd -W)/otherrepo/.git" >subdir/.git &&
218218
test_when_finished "rm -f subdir/.git" &&
219219
(
220220
cd subdir &&
@@ -224,8 +224,8 @@ test_expect_success '__gitdir - gitfile in cwd' '
224224
'
225225

226226
test_expect_success '__gitdir - gitfile in parent' '
227-
echo "$(pwd -P)/otherrepo/.git" >expected &&
228-
echo "gitdir: $TRASH_DIRECTORY/otherrepo/.git" >subdir/.git &&
227+
echo "$(pwd -W)/otherrepo/.git" >expected &&
228+
echo "gitdir: $(pwd -W)/otherrepo/.git" >subdir/.git &&
229229
test_when_finished "rm -f subdir/.git" &&
230230
(
231231
cd subdir/subsubdir &&

0 commit comments

Comments
 (0)