transport-helper: improve push messages
[gitweb.git] / t / t5801-remote-helpers.sh
index f387027c05cf502c6892c7694598bef34376be92..214aa40ca4a6fde61ae2658bd2d5e134d594ba1a 100755 (executable)
@@ -166,4 +166,18 @@ test_expect_success 'push ref with existing object' '
        compare_refs local dup server dup
 '
 
+test_expect_success 'push messages' '
+       (cd local &&
+       git checkout -b new_branch master &&
+       echo new >>file &&
+       git commit -a -m new &&
+       git push origin new_branch &&
+       git fetch origin &&
+       echo new >>file &&
+       git commit -a -m new &&
+       git push origin new_branch 2> msg &&
+       ! grep "\[new branch\]" msg
+       )
+'
+
 test_done