t/t4013: fix futzing with the version string.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Aug 12, 2006 at 18:04 UTC
6c7f4cebdb40c0d95c63d59538fd235dcf978029
1 file changed
+4
-2
t/t4013-diff-various.sh
+4
-2
@@ -88,7 +88,7 @@ test_expect_success setup '
88
+*+ [initial] Initial
89
EOF
90
91
-V=`git version | sed -e 's/^git version //'`
91
+V=`git version | sed -e 's/^git version //' -e 's/\./\\./g'`
92
while read cmd
93
do
94
case "$cmd" in
@@ -103,7 +103,9 @@ do
103
test_expect_success "git $cmd" '
104
{
105
echo "\$ git $cmd"
106
- git $cmd | sed -e "s/$V/g-i-t--v-e-r-s-i-o-n/"
106
+ git $cmd |
107
+ sed -e "s/^\\(-*\\)$V\\(-*\\)\$/\\1g-i-t--v-e-r-s-i-o-n\2/" \
108
+ -e "s/^\\( *boundary=\"-*\\)$V\\(-*\\)\"\$/\\1g-i-t--v-e-r-s-i-o-n\2\"/"
109
echo "\$"
110
} >"$actual" &&
111
if test -f "$expect"