aboutsummaryrefslogtreecommitdiff
path: root/git-annex-shell.hs
diff options
context:
space:
mode:
Diffstat (limited to 'git-annex-shell.hs')
-rw-r--r--git-annex-shell.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-annex-shell.hs b/git-annex-shell.hs
index 251acf613..78dd77790 100644
--- a/git-annex-shell.hs
+++ b/git-annex-shell.hs
@@ -60,7 +60,8 @@ builtins = map cmdname cmds
builtin :: String -> String -> [String] -> IO ()
builtin cmd dir params = do
- let gitrepo = Git.repoFromPath dir
+ dir' <- Git.absDir dir
+ let gitrepo = Git.repoFromPath dir'
dispatch gitrepo (cmd:(filterparams params)) cmds commonOptions header
external :: [String] -> IO ()