### Current behavior 😯 The following code errors out if `GIT_WORK_TREE` environment variable is set to e.g. the worktree directory path. ```rust let repo = gix::open::Options::default() .strict_config(true) .open(path)?; ``` ``` Error: Failed to load the git configuration Caused by: The key "core.worktree" (possibly from GIT_WORK_TREE) was invalid ``` ### Expected behavior 🤔 I'm not sure if the current behavior is expected, but I think a valid `GIT_WORK_TREE` should be either respected or ignored at all. ### Git behavior _No response_ ### Steps to reproduce 🕹 _No response_ --- Original issue: https://github.com/jj-vcs/jj/issues/6437