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
A .git file inside the git dir containing gitdir: . (otherwise Fork refuses to open the dir, which seems to be a bug on its own).
Action:
Open the dir in Fork: C:\Users\<user>\.home-git
NOTE: If git runs in that folder, it reports the top level as C:/Users/<user>, and all commands work.
Observed:
The Changes view lists modified files correctly (paths as git status --porcelain prints them, relative to the repository root), but every diff pane is empty, and "Open" from the context menu does nothing.
Cause (as far as it can be seen from outside):
Fork joins the root-relative paths from git status with the folder it opened, giving e.g. .home-git\bin\some_file, which does not exist. A path-taking git diff -- bin/some_file run from that folder is empty for the same reason, while git diff -- ../bin/some_file shows the change.
Expected:
Use git rev-parse --show-toplevel (or core.worktree) as the base for file paths, as git does; then repositories with a separate git directory work like any other.
C:\Users\<user>\.home-gitcore.bare=false,core.worktree=C:/Users/<user>.gitfile inside the git dir containinggitdir: .(otherwise Fork refuses to open the dir, which seems to be a bug on its own).C:\Users\<user>\.home-gitgitruns in that folder, it reports the top level asC:/Users/<user>, and all commands work.git status --porcelainprints them, relative to the repository root), but every diff pane is empty, and "Open" from the context menu does nothing.git statuswith the folder it opened, giving e.g..home-git\bin\some_file, which does not exist. A path-takinggit diff -- bin/some_filerun from that folder is empty for the same reason, whilegit diff -- ../bin/some_fileshows the change.git rev-parse --show-toplevel(orcore.worktree) as the base for file paths, as git does; then repositories with a separate git directory work like any other.