generalized relPathDirTo functions
This commit is contained in:
parent
b0b413c69f
commit
e433c6f0bb
3 changed files with 18 additions and 23 deletions
|
@ -58,7 +58,7 @@ calcGitLink file key = do
|
|||
let absfile = case absNormPath cwd file of
|
||||
Just f -> f
|
||||
Nothing -> error $ "unable to normalize " ++ file
|
||||
return $ relPathDirToDir (parentDir absfile)
|
||||
return $ relPathDirToFile (parentDir absfile)
|
||||
(Git.workTree g) </> ".git" </> annexLocation key
|
||||
|
||||
{- Updates the LocationLog when a key's presence changes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue