Revert "pass --git-dir, rather than changing cwd"
This reverts commitc142696c58
. It turns out it was not needed;681313dfd4
fixed up the git dir, so setting cwd to it works ok. But worst, this commit broke the test suite massively. I don't understand how. git-annex get was failing. Very weirdly, git-annex find in a fresh clone of an annex repo, during autoinit, was displaying a side message -- but side messages are disabled when running find.
This commit is contained in:
parent
a108b00b33
commit
f167851628
1 changed files with 3 additions and 8 deletions
|
@ -61,15 +61,10 @@ read' repo = go repo
|
||||||
go _ = assertLocal repo $ error "internal"
|
go _ = assertLocal repo $ error "internal"
|
||||||
git_config d = withCreateProcess p (git_config' p)
|
git_config d = withCreateProcess p (git_config' p)
|
||||||
where
|
where
|
||||||
params =
|
params = ["config", "--null", "--list"]
|
||||||
[ "--git-dir"
|
|
||||||
, fromRawFilePath d
|
|
||||||
, "config"
|
|
||||||
, "--null"
|
|
||||||
, "--list"
|
|
||||||
]
|
|
||||||
p = (proc "git" params)
|
p = (proc "git" params)
|
||||||
{ env = gitEnv repo
|
{ cwd = Just (fromRawFilePath d)
|
||||||
|
, env = gitEnv repo
|
||||||
, std_out = CreatePipe
|
, std_out = CreatePipe
|
||||||
}
|
}
|
||||||
git_config' p _ (Just hout) _ pid =
|
git_config' p _ (Just hout) _ pid =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue