replace removeLink with removeFile
removeFile calls unlink so removes anything not a directory. So these are replaceable in order to convert to OsPath.
This commit is contained in:
parent
8af91a4c92
commit
5cc8d9d03b
9 changed files with 39 additions and 41 deletions
2
Creds.hs
2
Creds.hs
|
@ -223,7 +223,7 @@ decodeCredPair creds = case lines creds of
|
|||
removeCreds :: OsPath -> Annex ()
|
||||
removeCreds file = do
|
||||
d <- fromRepo gitAnnexCredsDir
|
||||
liftIO $ removeWhenExistsWith R.removeLink (fromOsPath (d </> file))
|
||||
liftIO $ removeWhenExistsWith removeFile (d </> file)
|
||||
|
||||
includeCredsInfo :: ParsedRemoteConfig -> CredPairStorage -> [(String, String)] -> Annex [(String, String)]
|
||||
includeCredsInfo pc@(ParsedRemoteConfig cm _) storage info = do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue