xtrasmal / gitinspector

Automatically exported from code.google.com/p/gitinspector
GNU General Public License v3.0
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
This issue was closed by revision e3b4857eb645.

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

GoogleCodeExporter commented 9 years ago
Thank you. Patch applied with the commit above.

/Adam Waldenberg

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