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:
Joey Hess 2012-01-13 12:52:09 -04:00
parent daff9029ba
commit 1ae780ee79
6 changed files with 26 additions and 4 deletions

View file

@ -129,4 +129,4 @@ header :: String
header = "Usage: git-annex command [option ..]"
run :: [String] -> IO ()
run args = dispatch args cmds options header Git.Construct.fromCwd
run args = dispatch args cmds options header Git.Construct.fromCurrent