X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=t%2Ft0027-auto-crlf.sh;h=959b6da449004c526d6f5d106d9061d9763108e9;hb=f45f88b2e483649cd063a7dc7826c03025683e56;hp=3587e454f19d9bf71f2b02c9189d4715ed216fd9;hpb=49f50f58cb664d39ccf047342d05a763471a9420;p=thirdparty%2Fgit.git diff --git a/t/t0027-auto-crlf.sh b/t/t0027-auto-crlf.sh index 3587e454f1..959b6da449 100755 --- a/t/t0027-auto-crlf.sh +++ b/t/t0027-auto-crlf.sh @@ -15,8 +15,10 @@ compare_ws_file () { pfx=$1 exp=$2.expect act=$pfx.actual.$3 - tr '\015\000abcdef0123456789' QN00000000000000000 <"$2" >"$exp" && - tr '\015\000abcdef0123456789' QN00000000000000000 <"$3" >"$act" && + tr '\015\000abcdef0123456789' QN00000000000000000 <"$2" | + sed -e "s/0000*/$ZERO_OID/" >"$exp" && + tr '\015\000abcdef0123456789' QN00000000000000000 <"$3" | + sed -e "s/0000*/$ZERO_OID/" >"$act" && test_cmp "$exp" "$act" && rm "$exp" "$act" }