Skip to content

Commit

Permalink
Make non-existing repository check case-insensitive
Browse files Browse the repository at this point in the history
This should fix #78.
  • Loading branch information
jroovers-cisco committed Mar 13, 2019
1 parent 87993c9 commit f50e439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlint/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _git(*command_parts, **kwargs):
raise GitNotInstalledError()
except ErrorReturnCode as e: # Something went wrong while executing the git command
error_msg = e.stderr.strip()
if '_cwd' in git_kwargs and b"Not a git repository" in error_msg:
if '_cwd' in git_kwargs and b"not a git repository" in error_msg.lower():
error_msg = u"{0} is not a git repository.".format(git_kwargs['_cwd'])
else:
error_msg = u"An error occurred while executing '{0}': {1}".format(e.full_cmd, error_msg)
Expand Down

0 comments on commit f50e439

Please sign in to comment.