summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-10-13 16:06:35 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-10-13 16:06:35 -0400
commit0973e09d0787f599e000da6f6970d98cbe36f2d1 (patch)
tree892f8287a2278b2191289ee1b504aff82b7b6e71 /Command
parentc5b56002adf84b7bfa2ef90fceb577022c378f44 (diff)
fix warning
Diffstat (limited to 'Command')
-rw-r--r--Command/Map.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Map.hs b/Command/Map.hs
index 91862ae55..2428d1362 100644
--- a/Command/Map.hs
+++ b/Command/Map.hs
@@ -214,7 +214,7 @@ tryScan r
let (userhome, reldir) = span (/= '/') (drop 1 dir)
in "cd " ++ userhome ++ " && " ++ cdto (drop 1 reldir)
| otherwise = cdto dir
- cdto dir = "if ! cd " ++ shellEscape dir ++ " 2>/dev/null; then cd " ++ shellEscape dir ++ ".git; fi"
+ cdto p = "if ! cd " ++ shellEscape p ++ " 2>/dev/null; then cd " ++ shellEscape p ++ ".git; fi"
-- First, try sshing and running git config manually,
-- only fall back to git-annex-shell configlist if that