Skip to content

Commit a75a308

Browse files
tboegigitster
authored andcommitted
t5601: Remove trailing space in sed expression
The sed expression for IPv6, "Tested User And Host" or "tuah" used a wrong sed expression, which doesn't work under all versions of sed. Reported-By: Armin Kunaschik <[email protected]> Signed-off-by: Torsten Bögershausen <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7654286 commit a75a308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5601-clone.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ test_expect_success 'clone ssh://host.xz:22/~repo' '
445445
#IPv6
446446
for tuah in ::1 [::1] [::1]: user@::1 user@[::1] user@[::1]: [user@::1] [user@::1]:
447447
do
448-
ehost=$(echo $tuah | sed -e "s/1]:/1]/ "| tr -d "[]")
448+
ehost=$(echo $tuah | sed -e "s/1]:/1]/" | tr -d "[]")
449449
test_expect_success "clone ssh://$tuah/home/user/repo" "
450450
test_clone_url ssh://$tuah/home/user/repo $ehost /home/user/repo
451451
"

0 commit comments

Comments
 (0)