summaryrefslogtreecommitdiff
path: root/test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-26 13:49:22 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-26 14:35:39 -0400
commitcbfcd75214a648bf204f8356a28e360229542bde (patch)
tree4b63d28522c4c73dc4847d66fffe1bcf3864c0b9 /test.hs
parentc7e198390bfe3911943bc74836d7519c5ae37674 (diff)
fix * glob matching files in subdirectories
Diffstat (limited to 'test.hs')
-rw-r--r--test.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test.hs b/test.hs
index 03c0c4e3a..87898b4b5 100644
--- a/test.hs
+++ b/test.hs
@@ -560,6 +560,14 @@ test_find = "git-annex find" ~: intmpclonerepo $ do
git_annex_expectoutput "find" ["--inbackend", "SHA1"] [sha1annexedfile]
git_annex_expectoutput "find" ["--inbackend", "WORM"] []
+ {- --include=* should match files in subdirectories too,
+ - and --exclude=* should exclude them. -}
+ createDirectory "dir"
+ writeFile "dir/subfile" "subfile"
+ git_annex "add" ["dir"] @? "add of subdir failed"
+ git_annex_expectoutput "find" ["--include", "*", "--exclude", annexedfile, "--exclude", sha1annexedfile] ["dir/subfile"]
+ git_annex_expectoutput "find" ["--exclude", "*"] []
+
test_merge :: Test
test_merge = "git-annex merge" ~: intmpclonerepo $ do
git_annex "merge" [] @? "merge failed"