git repo path may be relative, so don't assume absolute any more

Fixes 6 test failures.
This commit is contained in:
Joey Hess 2015-01-06 16:32:44 -04:00
parent cd865c3b8f
commit 82f667e7f2

View file

@ -153,7 +153,7 @@ fromRemoteLocation s repo = gen $ parseRemoteLocation s repo
fromRemotePath :: FilePath -> Repo -> IO Repo
fromRemotePath dir repo = do
dir' <- expandTilde dir
fromAbsPath $ repoPath repo </> dir'
fromPath $ repoPath repo </> dir'
{- Git remotes can have a directory that is specified relative
- to the user's home directory, or that contains tilde expansions.