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
|
@ -40,7 +40,7 @@ parseArgs = do
|
|||
main :: IO ()
|
||||
main = do
|
||||
[aref, bref, newref] <- map Git.Ref <$> parseArgs
|
||||
g <- Git.Config.read =<< Git.Construct.fromCwd
|
||||
g <- Git.Config.read =<< Git.Construct.fromCurrent
|
||||
_ <- Git.Index.override $ tmpIndex g
|
||||
setup g
|
||||
Git.UnionMerge.merge aref bref g
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue