summaryrefslogtreecommitdiff
path: root/Locations.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Locations.hs')
-rw-r--r--Locations.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Locations.hs b/Locations.hs
index 596bf4f85..82c324e2c 100644
--- a/Locations.hs
+++ b/Locations.hs
@@ -144,11 +144,9 @@ gitAnnexLocation' key r crippled
gitAnnexLink :: FilePath -> Key -> Git.Repo -> IO FilePath
gitAnnexLink file key r = do
currdir <- getCurrentDirectory
- let absfile = fromMaybe whoops $ absNormPathUnix currdir file
+ let absfile = absPathFrom currdir file
loc <- gitAnnexLocation' key r False
relPathDirToFile (parentDir absfile) loc
- where
- whoops = error $ "unable to normalize " ++ file
{- File used to lock a key's content. -}
gitAnnexContentLock :: Key -> Git.Repo -> GitConfig -> IO FilePath