windows build fix from jwodder
authorJoey Hess <joeyh@joeyh.name>
Mon, 15 Feb 2021 17:35:01 +0000 (13:35 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 15 Feb 2021 17:35:01 +0000 (13:35 -0400)
Remote/Git.hs
doc/bugs/Windows_build_failing_as_of_commit_cb7bb3e.mdwn

index 3ca65c4f65d01337fc250ed71d5b085f00f7c7ee..596c259c562e053349bfbcdaaa0e10f0b316832a 100644 (file)
@@ -46,6 +46,7 @@ import Logs.Location
 import Utility.Metered
 import Utility.CopyFile
 import Utility.Env
+import Utility.FileMode
 import Utility.Batch
 import Utility.SimpleProtocol
 import Utility.Touch
@@ -70,7 +71,6 @@ import Messages.Progress
 
 #ifndef mingw32_HOST_OS
 import qualified Utility.RawFilePath as R
-import Utility.FileMode
 #endif
 
 import Control.Concurrent
@@ -654,7 +654,7 @@ copyFromRemoteCheap st repo
                        )
        | otherwise = Nothing
 #else
-copyFromRemoteCheap _ _ = Nothing
+copyFromRemoteCheap _ _ = Nothing
 #endif
 
 {- Tries to copy a key's content to a remote's annex. -}
@@ -927,6 +927,7 @@ newCopyCoWTried = CopyCoWTried <$> newEmptyMVar
 fileCopier :: State -> Copier
 #ifdef mingw32_HOST_OS
 fileCopier _st src dest k meterupdate check verifyconfig = docopy
+  where
 #else
 fileCopier st src dest k meterupdate check verifyconfig =
        -- If multiple threads reach this at the same time, they
index 2ae07ac47ca03331711dfe5379883317c25d912e..3352bb8654970392069b05dbcdfc94991c54c7f9 100644 (file)
@@ -2,3 +2,5 @@ As of commit cb7bb3e, trying to build git-annex on Windows fails with a syntax e
 
 [[!meta author=jwodder]]
 [[!tag projects/datalad]]
+
+> applied, thanks [[done]] --[[Joey]]