From e9ea4fa5aa9c100c0713163cf5934c2fd1645c5c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 13 Oct 2014 16:06:35 -0400 Subject: [PATCH] fix warning --- Command/Map.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/Map.hs b/Command/Map.hs index 91862ae55b..2428d13628 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