summaryrefslogtreecommitdiff
path: root/GitRepo.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-10-12 12:35:05 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-10-12 12:35:05 -0400
commite4bc7e599a799d758c4d948dce65a7fa05dd50cb (patch)
treeb0e5395f57b79ce8138f09f0ae60210bb60271ba /GitRepo.hs
parent8a3ea4edcbf1cc7059d5382ca84d0033cd9152c6 (diff)
revert bad change
I was wrong about git-config's level of smarts
Diffstat (limited to 'GitRepo.hs')
-rw-r--r--GitRepo.hs6
1 files changed, 1 insertions, 5 deletions
diff --git a/GitRepo.hs b/GitRepo.hs
index f3c959bec..565780311 100644
--- a/GitRepo.hs
+++ b/GitRepo.hs
@@ -136,11 +136,7 @@ gitRm repo file = runGit repo ["rm", file]
gitCommandLine :: GitRepo -> [String] -> [String]
gitCommandLine repo params = assertlocal repo $
-- force use of specified repo via --git-dir and --work-tree
- -- gitDir cannot be used for --git-dir because the config may
- -- not have been read (and gitConfigRead relies on this function).
- -- So this relies on git doing the right thing when told that
- -- --git-dir is the top of a work tree.
- ["--git-dir="++(top repo), "--work-tree="++(top repo)] ++ params
+ ["--git-dir="++(gitDir repo), "--work-tree="++(top repo)] ++ params
{- Runs git in the specified repo. -}
runGit :: GitRepo -> [String] -> IO ()