t/t4013: fix futzing with the version string.
Signed-off-by: Junio C Hamano <junkio@cox.net>maint
parent
40aaae88ad
commit
6c7f4cebdb
|
@ -88,7 +88,7 @@ test_expect_success setup '
|
||||||
+*+ [initial] Initial
|
+*+ [initial] Initial
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
V=`git version | sed -e 's/^git version //'`
|
V=`git version | sed -e 's/^git version //' -e 's/\./\\./g'`
|
||||||
while read cmd
|
while read cmd
|
||||||
do
|
do
|
||||||
case "$cmd" in
|
case "$cmd" in
|
||||||
|
@ -103,7 +103,9 @@ do
|
||||||
test_expect_success "git $cmd" '
|
test_expect_success "git $cmd" '
|
||||||
{
|
{
|
||||||
echo "\$ git $cmd"
|
echo "\$ git $cmd"
|
||||||
git $cmd | sed -e "s/$V/g-i-t--v-e-r-s-i-o-n/"
|
git $cmd |
|
||||||
|
sed -e "s/^\\(-*\\)$V\\(-*\\)\$/\\1g-i-t--v-e-r-s-i-o-n\2/" \
|
||||||
|
-e "s/^\\( *boundary=\"-*\\)$V\\(-*\\)\"\$/\\1g-i-t--v-e-r-s-i-o-n\2\"/"
|
||||||
echo "\$"
|
echo "\$"
|
||||||
} >"$actual" &&
|
} >"$actual" &&
|
||||||
if test -f "$expect"
|
if test -f "$expect"
|
||||||
|
|
Loading…
Reference in New Issue