A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/GitoxideLabs/gitoxide/issues/1985 below:

Repository cannot be loaded if both `strict_config(true)` and `$GIT_WORK_TREE` are set · Issue #1985 · GitoxideLabs/gitoxide · GitHub

Current behavior 😯

The following code errors out if GIT_WORK_TREE environment variable is set to e.g. the worktree directory path.

    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:
jj-vcs/jj#6437


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4