Closed rorybyrne closed 3 years ago
When running git-plan or gp outside of a git repository, a RuntimeError is shown with a stack trace.
git-plan
gp
RuntimeError
Steps to reproduce the behavior:
pip install git-plan
git-plan list
.git/
A useful error message should be shown.
There is already a NotAGitRepository Exception in the stack trace, so we should just catch that in the right place and display an error message.
NotAGitRepository
@synek I just opened PR #80
Describe the bug
When running
git-plan
orgp
outside of a git repository, aRuntimeError
is shown with a stack trace.To Reproduce
Steps to reproduce the behavior:
pip install git-plan
git-plan list
(in a directory without a.git/
directory)Expected behavior
A useful error message should be shown.
There is already a
NotAGitRepository
Exception in the stack trace, so we should just catch that in the right place and display an error message.