summaryrefslogtreecommitdiff
path: root/git-annex-shell.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-02-28 16:10:16 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-02-28 16:18:55 -0400
commitfcdc4797a9ab2b792a9bb20f2ca9802b8f6d5a1e (patch)
tree0471848c11df7c1481d8c735eab1280d7684eddc /git-annex-shell.hs
parent7e5678bcf7cd78bd04520117201be37dc9d4d544 (diff)
use ShellParam type
So, I have a type checked safe handling of filenames starting with dashes, throughout the code.
Diffstat (limited to 'git-annex-shell.hs')
-rw-r--r--git-annex-shell.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-annex-shell.hs b/git-annex-shell.hs
index fee4091ef..aeaadcbf8 100644
--- a/git-annex-shell.hs
+++ b/git-annex-shell.hs
@@ -66,7 +66,7 @@ builtin cmd dir params = do
external :: [String] -> IO ()
external params = do
- ret <- boolSystem "git-shell" ("-c":(filterparams params))
+ ret <- boolSystem "git-shell" $ map Param $ ("-c":filterparams params)
when (not ret) $
error "git-shell failed"