From 9bce151df7b073c5f2507ea15ca2237814ae9248 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 3 Mar 2013 13:39:07 -0400 Subject: git subcommand cleanup Pass subcommand as a regular param, which allows passing git parameters like -c before it. This was already done in the pipeing set of functions, but not the command running set. --- Remote/Helper/Special.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Remote/Helper/Special.hs') diff --git a/Remote/Helper/Special.hs b/Remote/Helper/Special.hs index f25ee8ee0..7fc421f46 100644 --- a/Remote/Helper/Special.hs +++ b/Remote/Helper/Special.hs @@ -34,7 +34,7 @@ gitConfigSpecialRemote u c k v = do set ("annex-"++k) v set ("annex-uuid") (fromUUID u) where - set a b = inRepo $ Git.Command.run "config" - [Param (configsetting a), Param b] + set a b = inRepo $ Git.Command.run + [Param "config", Param (configsetting a), Param b] remotename = fromJust (M.lookup "name" c) configsetting s = "remote." ++ remotename ++ "." ++ s -- cgit v1.2.3