Skip to content

fugitive: file does not belong to a Git repository #2418

@bam80

Description

@bam80

The file is /run/media/bam/ANACONDA/ks.cfg.

I use external Git dir (or worktree?) in my ~/.git repo:

bam@old:~$ git config get core.worktree 
/

So from ~ git sees the file:

bam@old:~$ git status  /run/media/bam/ANACONDA/ks.cfg
On branch anaconda
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   ../../../run/media/bam/ANACONDA/ks.cfg

no changes added to commit (use "git add" and/or "git commit -a")

I tried to do :cd in Vim, no luck..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions