File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -212,9 +212,18 @@ test_expect_success '__gitdir - non-existing $GIT_DIR' '
212
212
)
213
213
'
214
214
215
+ function pwd_P_W () {
216
+ if test_have_prereq MINGW
217
+ then
218
+ pwd -W
219
+ else
220
+ pwd -P
221
+ fi
222
+ }
223
+
215
224
test_expect_success ' __gitdir - gitfile in cwd' '
216
- echo "$(pwd -W )/otherrepo/.git" >expected &&
217
- echo "gitdir: $(pwd -W )/otherrepo/.git" >subdir/.git &&
225
+ echo "$(pwd_P_W )/otherrepo/.git" >expected &&
226
+ echo "gitdir: $(pwd_P_W )/otherrepo/.git" >subdir/.git &&
218
227
test_when_finished "rm -f subdir/.git" &&
219
228
(
220
229
cd subdir &&
@@ -224,8 +233,8 @@ test_expect_success '__gitdir - gitfile in cwd' '
224
233
'
225
234
226
235
test_expect_success ' __gitdir - gitfile in parent' '
227
- echo "$(pwd -W )/otherrepo/.git" >expected &&
228
- echo "gitdir: $(pwd -W )/otherrepo/.git" >subdir/.git &&
236
+ echo "$(pwd_P_W )/otherrepo/.git" >expected &&
237
+ echo "gitdir: $(pwd_P_W )/otherrepo/.git" >subdir/.git &&
229
238
test_when_finished "rm -f subdir/.git" &&
230
239
(
231
240
cd subdir/subsubdir &&
You can’t perform that action at this time.
0 commit comments