fix for Android
This commit is contained in:
parent
f92eaf6315
commit
280934111e
1 changed files with 1 additions and 7 deletions
8
Creds.hs
8
Creds.hs
|
@ -122,13 +122,7 @@ writeCacheCreds :: Creds -> FilePath -> Annex ()
|
|||
writeCacheCreds creds file = do
|
||||
d <- fromRepo gitAnnexCredsDir
|
||||
createAnnexDirectory d
|
||||
liftIO $ do
|
||||
let f = d </> file
|
||||
h <- openFile f WriteMode
|
||||
modifyFileMode f $ removeModes
|
||||
[groupReadMode, otherReadMode]
|
||||
hPutStr h creds
|
||||
hClose h
|
||||
liftIO $ writeFileProtected (d </> file) creds
|
||||
|
||||
readCacheCredPair :: CredPairStorage -> Annex (Maybe CredPair)
|
||||
readCacheCredPair storage = maybe Nothing decodeCredPair
|
||||
|
|
Loading…
Reference in a new issue