summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-01-06 16:32:44 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-01-06 16:32:44 -0400
commitab23d1549d615b42ce77545987b8efc59be9068f (patch)
treece2b6086513425a0d4b2ea40036c49a509d34c94
parentc9f1281cdd937e9facd26741b3e42d60a9c5cf28 (diff)
git repo path may be relative, so don't assume absolute any more
Fixes 6 test failures.
-rw-r--r--Git/Construct.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Git/Construct.hs b/Git/Construct.hs
index eed2b9930..108ee7eb7 100644
--- a/Git/Construct.hs
+++ b/Git/Construct.hs
@@ -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.