altsem / gitu

A TUI Git client inspired by Magit
MIT License
1.7k stars 88 forks source link

Friendlier error message when `gitu` doesn't find .git in pwd #216

Closed vrmiguel closed 1 month ago

vrmiguel commented 1 month ago

Hey there, congrats on this project!

This PR proposes a slightly better error message when you run gitu in a directory with no Git repository on it. Example:

Before

% gitu
Error: Error { code: -3, klass: 6, message: "could not find repository at '.'" }

After

% gitu
Error: "No .git found in the current directory"