You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I open the root folder of a Git worktree in VS Code, open a file, and try to use any of the commands to copy a link, I get an error The workspace at 'file:///Users/me/git/my-repo-worktree' is not tracked by Git. The commands work fine in the main local copy of the same repo.
Worktrees are implemented with a .gitfile which points to the the actual directory:
Then if all you're doing is running git commands, that can be done from the root of the worktree. (Only need to bother with looking in my-repo/.git/worktrees/my-repo-worktree/ if you need to dig into the .git folder contents, which I'd guess isn't needed?)
The text was updated successfully, but these errors were encountered:
If I open the root folder of a Git worktree in VS Code, open a file, and try to use any of the commands to copy a link, I get an error
The workspace at 'file:///Users/me/git/my-repo-worktree' is not tracked by Git.
The commands work fine in the main local copy of the same repo.Worktrees are implemented with a
.git
file which points to the the actual directory:So this line ought to allow
.git
to be either a file or directory.https://github.com/reduckted/vscode-gitweblinks/blob/d7bc2db7102f07032f5af2262bfd83942fdb86c4/src/repository-finder.ts#L64
Then if all you're doing is running git commands, that can be done from the root of the worktree. (Only need to bother with looking in
my-repo/.git/worktrees/my-repo-worktree/
if you need to dig into the .git folder contents, which I'd guess isn't needed?)The text was updated successfully, but these errors were encountered: