truncate over-long paths
This commit is contained in:
parent
67c05daf5e
commit
57b2473360
1 changed files with 4 additions and 2 deletions
|
@ -81,9 +81,11 @@ seek us = do
|
|||
|
||||
startRemote :: Remote -> Bool -> FilePath -> URLString -> Maybe Integer -> CommandStart
|
||||
startRemote r relaxed file uri sz = do
|
||||
showStart "addurl" file
|
||||
pathmax <- liftIO $ fileNameLengthLimit "."
|
||||
let file' = truncateFilePath pathmax file
|
||||
showStart "addurl" file'
|
||||
showNote $ "from " ++ Remote.name r
|
||||
next $ performRemote r relaxed uri file sz
|
||||
next $ performRemote r relaxed uri file' sz
|
||||
|
||||
performRemote :: Remote -> Bool -> URLString -> FilePath -> Maybe Integer -> CommandPerform
|
||||
performRemote r relaxed uri file sz = ifAnnexed file adduri geturi
|
||||
|
|
Loading…
Add table
Reference in a new issue