Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch: Gracefully handle non-git-repo path #44

Closed
GoogleCodeExporter opened this issue Aug 23, 2015 · 3 comments
Closed

Patch: Gracefully handle non-git-repo path #44

GoogleCodeExporter opened this issue Aug 23, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

When gitinspector is called with a path that is not a git repo, for example: 
calling gitinspector without any arguments from within a non-repo CWD, it 
prints a stack trace.

The attached patch handles the situation somewhat more gracefully by printing 
an error message and then, exiting.

Original issue reported on code.google.com by debian.k...@gmail.com on 8 Nov 2014 at 9:02

Attachments:

@GoogleCodeExporter
Copy link
Author

Hit submit too fast -- should have been an enhancement request, not defect.

Original comment by debian.k...@gmail.com on 8 Nov 2014 at 9:03

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision e3b4857eb645.

Original comment by gitinspe...@ejwa.se on 20 Nov 2014 at 2:44

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Thank you. Patch applied with the commit above.

/Adam Waldenberg

Original comment by gitinspe...@ejwa.se on 20 Nov 2014 at 2:46

  • Added labels: Type-Enhancement, Usability
  • Removed labels: Type-Defect

@adam-waldenberg adam-waldenberg self-assigned this Oct 9, 2015
@adam-waldenberg adam-waldenberg added this to the 0.4.0 milestone Oct 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants