Search code examples
gitgitk

gitk on bare directory


I used to be able to run gitk on bare directory on remote server.

I got a new Win10 machine, installed git from git-scm .com That gave me git and git Bash. Now when I go to the same remote server

 MINGW64 /t/git/MyProject (BARE:master)$ gitk

gitk says fatal: this operation mus be run in a work tree

I kind of understand what's going on, and yes I can do $ git log

But why did it work before?


Solution

  • But why did it work before?

    A recent change in the behavoir of git

    git rev-parse --show-toplevel
    

    broke gitk. This can be found wehn following down the original bug report.

    I recommend downgrading to version 2.24.1.windows.2 which is the most recent that doesnt have it.