X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2FT850-git.sh;h=72091b5655db0c0c6a9c48ff09061eee8041d5eb;hb=f67d7c9e7a2d110e54609e572c35804f0172ba11;hp=994950ed2857ddf608a02b7ddd23c73da80b76b2;hpb=b0105841638e3681e51577128b0a990ae7f815dc;p=notmuch diff --git a/test/T850-git.sh b/test/T850-git.sh index 994950ed..72091b56 100755 --- a/test/T850-git.sh +++ b/test/T850-git.sh @@ -2,6 +2,11 @@ test_description='"notmuch git" to save and restore tags' . $(dirname "$0")/test-lib.sh || exit 1 +if [ $NOTMUCH_HAVE_SFSEXP -ne 1 ]; then + printf "Skipping due to missing sfsexp library\n" + test_done +fi + add_email_corpus git config --global user.email notmuch@example.org @@ -19,6 +24,15 @@ git -C tags.git ls-tree -r --name-only HEAD | xargs dirname | sort -u | sed s,ta notmuch search --output=messages '*' | sort > EXPECTED test_expect_equal_file_nonempty EXPECTED OUTPUT +test_begin_subtest "commit, with quoted tag" +notmuch git -C clone2.git -p '' clone tags.git +git -C clone2.git ls-tree -r --name-only HEAD | grep /inbox > BEFORE +notmuch tag '+"quoted tag"' '*' +notmuch git -C clone2.git -p '' commit +notmuch tag '-"quoted tag"' '*' +git -C clone2.git ls-tree -r --name-only HEAD | grep /inbox > AFTER +test_expect_equal_file_nonempty BEFORE AFTER + test_begin_subtest "checkout" notmuch dump > BEFORE notmuch tag -inbox '*'