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 <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Sixt committed
Mar 20, 2013 at 09:47 UTC
8be412a723459feb9f521062e2919f8f6e8389d3
1 file changed
+2
-2
t/t2003-checkout-cache-mkdir.sh
+2
-2
@@ -94,14 +94,14 @@ test_expect_success 'apply filter from working tree .gitattributes with --prefix
94
rm -fr path0 path1 path2 tmp* &&
95
mkdir path1 &&
96
mkdir tmp &&
97
- git config filter.replace-all.smudge "sed -e s/./=/g" &&
97
+ git config filter.replace-all.smudge "sed -e s/./,/g" &&
98
git config filter.replace-all.clean cat &&
99
git config filter.replace-all.required true &&
100
echo "file1 filter=replace-all" >path1/.gitattributes &&
101
git checkout-index --prefix=tmp/ -f -a &&
102
echo frotz >expected &&
103
test_cmp expected tmp/path0 &&
104
- echo ====== >expected &&
104
+ echo ,,,,,, >expected &&
105
test_cmp expected tmp/path1/file1
106
'
107