git-annex, git-union-merge: Support GIT_DIR and GIT_WORK_TREE.
Note that GIT_WORK_TREE cannot influence GIT_DIR; that is necessary for git-fake-bare and vcsh type things to work.
This commit is contained in:
parent
daff9029ba
commit
1ae780ee79
6 changed files with 26 additions and 4 deletions
2
test.hs
2
test.hs
|
@ -727,7 +727,7 @@ git_annex_expectoutput command params expected = do
|
|||
-- are not run; this should only be used for actions that query state.
|
||||
annexeval :: Types.Annex a -> IO a
|
||||
annexeval a = do
|
||||
g <- Git.Construct.fromCwd
|
||||
g <- Git.Construct.fromCurrent
|
||||
g' <- Git.Config.read g
|
||||
s <- Annex.new g'
|
||||
Annex.eval s { Annex.output = Annex.QuietOutput } a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue