avoid windows build warning

This commit is contained in:
Joey Hess 2019-08-13 13:10:33 -04:00
parent a95de6bcc7
commit cfd0b4108e
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -821,9 +821,11 @@ data State = State Ssh.P2PSshConnectionPool DeferredUUIDCheck CopyCoWTried (Anne
getRepoFromState :: State -> Annex Git.Repo
getRepoFromState (State _ _ _ a) = fst <$> a
#ifndef mingw32_HOST_OS
{- The config of the remote git repository, cached for speed. -}
getGitConfigFromState :: State -> Annex GitConfig
getGitConfigFromState (State _ _ _ a) = snd <$> a
#endif
mkState :: Git.Repo -> UUID -> RemoteGitConfig -> Annex State
mkState r u gc = do