X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/04b442170d797b1cb80700838c41b7222040236c..47d51d91ed814d31e00e62e5fc4ea8ea5d98eab4:/t/t1800-import.sh diff --git a/t/t1800-import.sh b/t/t1800-import.sh index 8c8c9a0..624e51c 100755 --- a/t/t1800-import.sh +++ b/t/t1800-import.sh @@ -22,6 +22,17 @@ test_expect_success \ ' test_expect_success \ + 'Apply a patch created with "git diff" from a subdirectory' \ + ' + mkdir subdir && cd subdir && + stg import ../../t1800-import/git-diff && + [ $(git cat-file -p $(stg id) \ + | grep -c "tree e96b1fba2160890ff600b675d7140d46b022b155") = 1 ] && + stg delete .. && + cd .. + ' + +test_expect_success \ 'Apply a patch created with GNU diff' \ ' stg import ../t1800-import/gnu-diff &&