]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3301-notes.sh
Merge branch 'jw/gitweb-sample-update' into maint
[thirdparty/git.git] / t / t3301-notes.sh
index 84bbf88cf9d0cf8e2887abc6ef3a4c597ba4aa3a..704bbc65419c3b95fb6799b890df538338684596 100755 (executable)
@@ -1120,9 +1120,10 @@ test_expect_success 'GIT_NOTES_REWRITE_REF overrides config' '
        test_config notes.rewriteMode overwrite &&
        test_config notes.rewriteRef refs/notes/other &&
        echo $(git rev-parse HEAD^) $(git rev-parse HEAD) |
-       GIT_NOTES_REWRITE_REF= git notes copy --for-rewrite=foo &&
+       GIT_NOTES_REWRITE_REF=refs/notes/commits \
+               git notes copy --for-rewrite=foo &&
        git log -1 >actual &&
-       test_cmp expect actual
+       grep "replacement note 3" actual
 '
 
 test_expect_success 'git notes copy diagnoses too many or too few parameters' '