Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #43292 All Revisions ] Back to Issue ]
Summary 0043292: Git hooks for jslint and jsformatter don't work on files with both staged and ustaged changes
Revision 2020-03-03 15:42 by cberner
Description Git hooks migrated from mercurial for jslint and jsformatter use the current file in the workspace when files are staged instead of the staged file.

So if there are files that have both staged changes and unstaged changes, the file checked by the linter will be the one that contains both staged and unstaged changes, instead of only the staged changes. So it will fail to commit if the unstaged changes break the linter.

It also fails with git commit --amend, doesn't do any checking in those cases.
Revision 2020-02-21 14:30 by cberner
Description Git hooks migrated from mercurial for jslint and jsformatter use the current file in the workspace when files are staged instead of the staged file.

So if there are files that have both staged changes and unstaged changes, the file checked by the linter will be the one that contains both staged and unstaged changes, instead of only the staged changes. So it will fail to commit if the unstaged changes break the linter.


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker