repair: Fix handling of git ref names on Windows

Sponsored-by: Kevin Mueller on Patreon
This commit is contained in:
Joey Hess 2023-05-30 16:09:13 -04:00
parent 9ca81ed02a
commit 5070087a63
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 14 additions and 1 deletions

View file

@ -354,6 +354,7 @@ repoTests note numparts = map mk $ sep
, testCase "required_content" test_required_content
, testCase "add subdirs" test_add_subdirs
, testCase "addurl" test_addurl
, testCase "repair" test_repair
]
where
mk l = testGroup groupname (initTests : map adddep l)
@ -2091,3 +2092,8 @@ test_transition_propagation_reversion =
emptylog
where
emptylog = git_annex_expectoutput "log" [wormannexedfile] []
test_repair :: Assertion
test_repair = intmpclonerepo $
-- Simply running repair used to fail on Windows.
git_annex "repair" [] "repair"