Mir
Mir

Reputation: 1613

Git pull fails when I have a separate working dir

I have a repository that has a separate worktree. When I attempt to git pull it fails with a triple fatal: Not a git repository (or any parent up to mount point /var/www) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

I'm launching this command from the git folder and not from the worktree.

Upvotes: 1

Views: 85

Answers (1)

Lorenzo
Lorenzo

Reputation: 288

In your worktree add a file .git containing:

gitdir: /path/to/your/repo/dir

Otherwise, when you init the repo remember to use --separate-git-dir:

git init --separate-git-dir <git dir>

Upvotes: 2

Related Questions