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

Hook compatibility with SourceTree #7

Closed
wturrell opened this issue Jan 21, 2016 · 1 comment
Closed

Hook compatibility with SourceTree #7

wturrell opened this issue Jan 21, 2016 · 1 comment
Labels
enhancement User-facing feature enhancements

Comments

@wturrell
Copy link

When I attempt to commit via SourceTree rather than the CLI, I get:

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree commit -q -F /var/folders/0m/_txwwtzj7sz411brd78rlbv80000gp/T/SourceTreeTemp.uRlEZw 
.git/hooks/commit-msg: line 11: /dev/tty: Device not configured
Completed with errors, see above

Any way to fix (or just suppress/ignore) that?

@jorisroovers
Copy link
Owner

We should put a guard there to check if we are using the tty or not. I'd need to spend some time to replicate.

What do you think the expected behavior should be though? Just ignoring the commit message all together is probably not the best option.
If we do have to go down that route we should at least document that gitlint only supports usage through the CLI.

@jorisroovers jorisroovers added bug User-facing bugs enhancement User-facing feature enhancements and removed bug User-facing bugs labels Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement User-facing feature enhancements
Projects
None yet
Development

No branches or pull requests

2 participants