userdiff: support new keywords in PHP hunk header
[gitweb.git] / t / t7030-verify-tag.sh
index b4b49eeb08313df8d260a17414a19e7ac2fdc901..291a1e2b07417559d3f3defd6a60043b505eb3c7 100755 (executable)
@@ -74,7 +74,7 @@ test_expect_success GPG 'verify and show signatures' '
 
 test_expect_success GPG 'detect fudged signature' '
        git cat-file tag seventh-signed >raw &&
-       sed -e "s/seventh/7th forged/" raw >forged1 &&
+       sed -e "/^tag / s/seventh/7th forged/" raw >forged1 &&
        git hash-object -w -t tag forged1 >forged1.tag &&
        test_must_fail git verify-tag $(cat forged1.tag) 2>actual1 &&
        grep "BAD signature from" actual1 &&