diff options
author | 2013-02-26 13:49:22 -0400 | |
---|---|---|
committer | 2013-02-26 14:35:39 -0400 | |
commit | cbfcd75214a648bf204f8356a28e360229542bde (patch) | |
tree | 4b63d28522c4c73dc4847d66fffe1bcf3864c0b9 /test.hs | |
parent | c7e198390bfe3911943bc74836d7519c5ae37674 (diff) |
fix * glob matching files in subdirectories
Diffstat (limited to 'test.hs')
-rw-r--r-- | test.hs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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" |