fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
461 stars 10 forks source link

committing fails if repo uses git worktree #1278

Open lucasmeijer opened 3 years ago

lucasmeijer commented 3 years ago

When using git worktree, ".git" is not a folder, but a file with these contents:

gitdir: c:/lucas/maincheckout

if I try to use fork to commit from my worktree directory, it fails because it tries to read .git/COMMITMESSAGE, which fails because .git is not a directory.

I'd love to be able to use fork in my worktree's. The reason I use worktree is that the repo I need to work in is gigantic, and making multiple clones takes much more diskspace than one clone with 4 worktrees.

the reason I use fork is that it's the only git client that doesn't choke on this enormous repo :-)

DanPristupov commented 3 years ago

Currently Fork doesn't support worktrees: https://github.com/fork-dev/TrackerWin/issues/135

Reedbeta commented 2 years ago

@lucasmeijer FYI, see my comment in https://github.com/fork-dev/TrackerWin/issues/947#issuecomment-966699046 - there may be a workaround to fix this by manually editing Fork's settings.json.