You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ gitlint
Traceback (most recent call last):
File "/usr/local/bin/gitlint", line 7, in <module>
from gitlint.cli import cli
File "/usr/local/lib/python3.6/dist-packages/gitlint/cli.py", line 27, in <module>
from gitlint.git import GitContext, GitContextError, git_version
File "/usr/local/lib/python3.6/dist-packages/gitlint/git.py", line 59, in <module>
class GitCommitMessage(object):
File "/usr/local/lib/python3.6/dist-packages/gitlint/git.py", line 66, in GitCommitMessage
COMMENT_CHAR = git_commentchar()
File "/usr/local/lib/python3.6/dist-packages/gitlint/git.py", line 54, in git_commentchar
if commentchar.exit_code == 1: # pylint: disable=no-member
AttributeError: 'str' object has no attribute 'exit_code'
The text was updated successfully, but these errors were encountered:
Closing this as a duplicate, let me know if you still encounter the issue with latest master. I hope to roll a release over the next few days that will include the fix.
When a git repository has a custom 'core.commentchar' configured, gitlint wouldn
crash. This was caused by gitlint not properly handling the 'success' case where
'git config' returns an exit code of 0.
In addition, gitlint wouldn't respect the '—target' parameter to determine the
commentchar, instead just executing the git config in the current working
directory instead of the target directory.
This should fix#59
The text was updated successfully, but these errors were encountered: