chiark / gitweb /
Allow refresh --annotate to replace the top log entry
[stgit] / t / t1400-patch-history.sh
index b18283869839fb9af9acbda16e6ab7c2affe7697..b0602ff159ec4ff0c712ef9573b6e182428c6ebd 100755 (executable)
@@ -44,8 +44,11 @@ test_expect_success \
 test_expect_success \
        'Check the log annotation' \
        '
-       stg log foo | grep -q -e "\[refresh\] foo notes "
-       stg log bar | grep -q -e "\[refresh\]           "
+       stg log foo | grep -q -e    "\[refresh\] foo notes  " &&
+       stg log bar | grep -q -e    "\[refresh\]            " &&
+       stg refresh -p foo --annotate="foo notes 2" &&
+       stg log foo | grep -q -v -e "\[refresh\] foo notes  " &&
+       stg log foo | grep -q -e    "\[refresh\] foo notes 2"
        '
 
 test_expect_success \