Search code examples
git-gui

Always get 'Could not find git repository' error when starting the gitg visual tool


I click 'ok' then I can use

File -> Recently Opened or File -> New

But I cannot set a repository as the default and I cannot get rid of the startup message showing every time until I click 'OK'.

I am on Ubuntus 10 / 11 (gitg is the ubuntu equivalent of the Mac gitx tool)


Solution

  • This is a known bug.

    Here is a fairly lame workaround is for Ubuntu 10.10, I don't have any later version: If you create a panel icon (by dragging the application icon to the panel for example), you can make it open a particular repository by editing its properties (right click -> Properties) and changing the "Command" field, replacing the %U with the path to your repository.