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
|
writeCacheCreds creds file = do
|
||||||
d <- fromRepo gitAnnexCredsDir
|
d <- fromRepo gitAnnexCredsDir
|
||||||
createAnnexDirectory d
|
createAnnexDirectory d
|
||||||
liftIO $ do
|
liftIO $ writeFileProtected (d </> file) creds
|
||||||
let f = d </> file
|
|
||||||
h <- openFile f WriteMode
|
|
||||||
modifyFileMode f $ removeModes
|
|
||||||
[groupReadMode, otherReadMode]
|
|
||||||
hPutStr h creds
|
|
||||||
hClose h
|
|
||||||
|
|
||||||
readCacheCredPair :: CredPairStorage -> Annex (Maybe CredPair)
|
readCacheCredPair :: CredPairStorage -> Annex (Maybe CredPair)
|
||||||
readCacheCredPair storage = maybe Nothing decodeCredPair
|
readCacheCredPair storage = maybe Nothing decodeCredPair
|
||||||
|
|
Loading…
Reference in a new issue