A relative core.worktree is relative to the gitdir.

Now that this is handled correctly, git-annex can be used in git submodules.

Also, fixed infelicity where Git.CurrentRepo and Git.Config.updateLocation
were both dealing with core.worktree. Now updateLocation handles it for
Local as well as for LocalUnknown repos.
This commit is contained in:
Joey Hess 2012-10-16 00:02:14 -04:00
parent 148d9f0088
commit 8fec62d299
4 changed files with 21 additions and 15 deletions

View file

@ -51,5 +51,6 @@ Got:
* The path in that config is relative to the config file: "worktree = ../../../../lib/submod"
* Git-annex expect the path to be relative to the current directory, which is why it fails.
> Impressive analysis, thanks. I've fixed handling of relative
> core.worktree. [[done]] --[[Joey]]