Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0043292 | Openbravo ERP | A. Platform | public | 2020-02-21 14:30 | 2020-05-08 14:09 |
|
Reporter | cberner | |
Assigned To | cberner | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | PR20Q3 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0043292: Git hooks for jslint and jsformatter don't work on files with both staged and ustaged changes |
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. |
Steps To Reproduce | In description |
Proposed Solution | When passing the linter/formatter only take into account the staged files, using git show :file should work. |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2020-02-21 14:30 | cberner | New Issue | |
2020-02-21 14:30 | cberner | Assigned To | => cberner |
2020-02-21 14:30 | cberner | OBNetwork customer | => No |
2020-02-21 14:30 | cberner | Modules | => Core |
2020-02-21 14:30 | cberner | Triggers an Emergency Pack | => No |
2020-03-03 15:42 | cberner | Description Updated | bug_revision_view_page.php?rev_id=20508#r20508 |
2020-04-23 10:18 | cberner | Status | new => scheduled |
2020-04-23 10:18 | cberner | Note Added: 0119350 | |
2020-05-05 16:28 | hgbot | Checkin | |
2020-05-05 16:28 | hgbot | Note Added: 0119588 | |
2020-05-05 16:28 | hgbot | Status | scheduled => resolved |
2020-05-05 16:28 | hgbot | Resolution | open => fixed |
2020-05-05 16:28 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/ff45077d275ede2fec6489bcc6e3c12e20a18c15 [^] |
2020-05-08 14:09 | alostale | Review Assigned To | => alostale |
2020-05-08 14:09 | alostale | Status | resolved => closed |
2020-05-08 14:09 | alostale | Fixed in Version | => 3.0PR20Q3 |