[โ€“] [S] 1 point 2 days ago (3 children)

@phpstorm And then I have to open the worktree as a new Project in a separate window? I can't attach it to the current project?๐Ÿคฏ And even opening it in the same window will create a totally separate .idea folder and all my settings from before are ... gone...Whoever thought that's a good UX might want to reconsider that decision....

  • source
  • parent
  • context
  • [โ€“] [S] 1 point 2 days ago* (4 children)

    @phpstorm It's me. And also my #edgecases When you create a worktree inside a container and didn'T set git config worktree.useRelativePaths true then the gitdif file in the .git/worktree folder and the .git file in your visible worktree will link to each other in absolute paths - based on the containers filesystem...Outside the container PHPStorm can then not find those files and ๐Ÿ’ฅ Thanks for the learning opportunity! ๐Ÿ™ˆ Oh and the submodules were stuck in .idea/vcs.xml...

  • source
  •  

    So @phpstorm can handle worktrees...At least when you only have one git-repo in your project....Good. I now have removed the other three git-repos from the project (sucks because - microservices os so but hey! If that's your requirement I'll try it!)Turns out: One of those removed git repos had subrepos....The main repo is gone from the Worktrees view. The 2 subrepos are still there.... And there seems to be no way to remove them...Is that something for a bug-report? Or is it just me?