honor init --version=5 on crippled filesystem
init: When --version=5 is passed on a crippled filesystem, use a v5 direct mode repo as requested, rather than upgrading to v7 adjusted unlocked. Fixed test suite on crippled filesystems, making it request --version=5 to test direct mode.
This commit is contained in:
parent
14971414dc
commit
5759e93444
4 changed files with 15 additions and 13 deletions
4
Test.hs
4
Test.hs
|
@ -276,9 +276,7 @@ unitTests note = testGroup ("Unit Tests " ++ note)
|
|||
test_init :: Assertion
|
||||
test_init = innewrepo $ do
|
||||
ver <- annexVersion <$> getTestMode
|
||||
if ver == Annex.Version.defaultVersion
|
||||
then git_annex "init" [reponame] @? "init failed"
|
||||
else git_annex "init" [reponame, "--version", show (fromRepoVersion ver)] @? "init failed"
|
||||
git_annex "init" [reponame, "--version", show (fromRepoVersion ver)] @? "init failed"
|
||||
setupTestMode
|
||||
where
|
||||
reponame = "test repo"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue