]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t/t9118-git-svn-funky-branch-names.sh: sed needs semicolon
authorMarcel Telka <marcel@telka.sk>
Fri, 17 May 2024 15:39:28 +0000 (17:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 May 2024 19:15:51 +0000 (12:15 -0700)
POSIX specifies that all editing commands between braces shall be
terminated by a <newline> or <semicolon>.

Signed-off-by: Marcel Telka <marcel@telka.sk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9118-git-svn-funky-branch-names.sh

index d3261e35b818400f0242a18a4b024877b1307823..a34fd46ecc5a393f422747ebbe947a45e883376f 100755 (executable)
@@ -38,7 +38,7 @@ test_expect_success 'setup svnrepo' '
 # SVN 1.7 will truncate "not-a%40{0]" to just "not-a".
 # Look at what SVN wound up naming the branch and use that.
 # Be sure to escape the @ if it shows up.
-non_reflog=$(svn_cmd ls "$svnrepo/pr ject/branches" | sed -ne '/not-a/ { s/\///; s/@/%40/; p }')
+non_reflog=$(svn_cmd ls "$svnrepo/pr ject/branches" | sed -ne '/not-a/ { s/\///; s/@/%40/; p; }')
 
 test_expect_success 'test clone with funky branch names' '
        git svn clone -s "$svnrepo/pr ject" project &&