git-annex/doc/bugs/GIT_DIR_support_incomplete.mdwn
Joey Hess eb6cb1b87f Add support for core.worktree, and fix support for GIT_WORK_TREE and GIT_DIR.
The environment needs to override git-config. Changed when git config is
read, and avoid rereading it once it's been read.

chdir for both worktree settings.
2012-05-18 18:20:53 -04:00

17 lines
369 B
Markdown

`GIT_DIR` support isn't right. Git does not look for `GIT_DIR/.git`;
git-annex does.
Also, to support this scenario, support for core.worktree needs to be added
as well:
mkdir repo workdir
git --work-tree=$PWD/workdir --git-dir=$PWD/repo init
export GIT_DIR=$PWD/repo
git status
# ok
git annex init "new repo"
# fail
--[[Joey]]
> [[fixed|done]] --[[Joey]]