X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/a05954efcf4fce744252ce2e1a650b78fa5788d6..2c1e19f5491eecc562f8a8c237847936b86e4db8:/t/t1800-import.sh diff --git a/t/t1800-import.sh b/t/t1800-import.sh index 1352743..9c31741 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 &&