diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-12-30 13:29:00 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-12-30 13:29:00 -0400 |
commit | 2b8e7b4041a4fa47caaf3507317c5b96f6f3e9e4 (patch) | |
tree | 63ea4edc31782128ab5ace200dd1facf3c05cff9 /Test.hs | |
parent | 7b917b36e2e564efe9aa5ae385a82d17889890c5 (diff) |
set annex.largefiles earlier in test suite
The ingitfile was having git run it through the clean filter in some cases.
Diffstat (limited to 'Test.hs')
-rw-r--r-- | Test.hs | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -770,6 +770,7 @@ test_migrate' usegitattributes = intmpclonerepoInDirect $ do test_unused :: Assertion -- This test is broken in direct mode test_unused = intmpclonerepoInDirect $ do + checkunused [] "in new clone" -- keys have to be looked up before files are removed annexedfilekey <- annexeval $ findkey annexedfile sha1annexedfilekey <- annexeval $ findkey sha1annexedfile @@ -1629,6 +1630,12 @@ configrepo dir = indir dir $ do boolSystem "git" [Param "config", Param "user.email", Param "test@example.com"] @? "git config failed" -- avoid signed commits by test suite boolSystem "git" [Param "config", Param "commit.gpgsign", Param "false"] @? "git config failed" + -- tell git-annex to not annex the ingitfile + boolSystem "git" + [ Param "config" + , Param "annex.largefiles" + , Param ("exclude=" ++ ingitfile) + ] @? "git config annex.largefiles failed" ensuretmpdir :: IO () ensuretmpdir = do @@ -1797,12 +1804,6 @@ setupTestMode = do testmode <- getTestMode when (forceDirect testmode) $ git_annex "direct" ["-q"] @? "git annex direct failed" - whenM (annexeval Annex.Version.versionSupportsUnlockedPointers) $ - boolSystem "git" - [ Param "config" - , Param "annex.largefiles" - , Param ("exclude=" ++ ingitfile) - ] @? "git config annex.largefiles failed" changeToTmpDir :: FilePath -> IO () changeToTmpDir t = do |