push tests: use spaces in interpolated string
[gitweb.git] / t / t7510-signed-commit.sh
index 663bf68def8ea0bf32475a9a932c7bc4eed280b8..6e2015ed9a199d6c6240a5fee850e72fd2fa65c3 100755 (executable)
@@ -142,8 +142,7 @@ test_expect_success GPG 'show signed commit with signature' '
 
 test_expect_success GPG 'detect fudged signature' '
        git cat-file commit seventh-signed >raw &&
-
-       sed -e "s/seventh/7th forged/" raw >forged1 &&
+       sed -e "s/^seventh/7th forged/" raw >forged1 &&
        git hash-object -w -t commit forged1 >forged1.commit &&
        test_must_fail git verify-commit $(cat forged1.commit) &&
        git show --pretty=short --show-signature $(cat forged1.commit) >actual1 &&