Skip to content

Commit 8be412a

Browse files
j6tgitster
authored andcommitted
t2003: work around path mangling issue on Windows
MSYS bash considers the part "/g" in the sed expression "s/./=/g" as an absolute path after an assignment, and mangles it to a C:/something string. Do not attract bash's attention by avoiding the equals sign. Signed-off-by: Johannes Sixt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7297a44 commit 8be412a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t2003-checkout-cache-mkdir.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ test_expect_success 'apply filter from working tree .gitattributes with --prefix
9494
rm -fr path0 path1 path2 tmp* &&
9595
mkdir path1 &&
9696
mkdir tmp &&
97-
git config filter.replace-all.smudge "sed -e s/./=/g" &&
97+
git config filter.replace-all.smudge "sed -e s/./,/g" &&
9898
git config filter.replace-all.clean cat &&
9999
git config filter.replace-all.required true &&
100100
echo "file1 filter=replace-all" >path1/.gitattributes &&
101101
git checkout-index --prefix=tmp/ -f -a &&
102102
echo frotz >expected &&
103103
test_cmp expected tmp/path0 &&
104-
echo ====== >expected &&
104+
echo ,,,,,, >expected &&
105105
test_cmp expected tmp/path1/file1
106106
'
107107

0 commit comments

Comments
 (0)