Closed amalitsky closed 4 years ago
Yes, this is a bug in the build that has not been addressed yet.
Looks like the issue is with this line of the script: https://github.com/vmware/clarity/blob/master/scripts/update-license.js#L34
Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.
Describe the bug
Files from Untracked and Changes not staged for commit zone are pulled into the staging (and subsequently into commit) by
npm run license:fix
script run by pre-commit githook.How to reproduce
have three changed files in your tree: one in staged zone (Changes to be committed), one in Changes not staged for commit and another one in Untracked files:
Changes not staged for commit: (use "git add..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)
Untracked files: (use "git add..." to include in what will be committed)
user@mac:clarity$ git status On branch func-return-value Changes to be committed: (use "git reset HEAD..." to unstage)