remove only case
This commit is contained in:
parent
2fd27c6df5
commit
1e02360283
1 changed files with 5 additions and 6 deletions
|
@ -48,12 +48,11 @@ linkOrCopy :: Key -> FilePath -> FilePath -> Maybe FileMode -> Annex (Maybe Link
|
||||||
linkOrCopy = linkOrCopy' (annexThin <$> Annex.getGitConfig)
|
linkOrCopy = linkOrCopy' (annexThin <$> Annex.getGitConfig)
|
||||||
|
|
||||||
linkOrCopy' :: Annex Bool -> Key -> FilePath -> FilePath -> Maybe FileMode -> Annex (Maybe LinkedOrCopied)
|
linkOrCopy' :: Annex Bool -> Key -> FilePath -> FilePath -> Maybe FileMode -> Annex (Maybe LinkedOrCopied)
|
||||||
linkOrCopy' canhardlink key src dest destmode
|
linkOrCopy' canhardlink key src dest destmode = catchDefaultIO Nothing $
|
||||||
| otherwise = catchDefaultIO Nothing $
|
ifM canhardlink
|
||||||
ifM canhardlink
|
( hardlink
|
||||||
( hardlink
|
, copy =<< getstat
|
||||||
, copy =<< getstat
|
)
|
||||||
)
|
|
||||||
where
|
where
|
||||||
hardlink = do
|
hardlink = do
|
||||||
s <- getstat
|
s <- getstat
|
||||||
|
|
Loading…
Add table
Reference in a new issue