[Bug] Throws exception when used in development mode in a git worktree
timcleaver opened this issue ยท 0 comments
๐ Bug report
Description
Throws exception when using hint cli in a git worktree.
Details
Steps to reproduce:
- git clone repository
- git worktree add develop ../develop
- cd ../develop
- hint /.
- (node:39249) [DEP0040] DeprecationWarning: The
punycodemodule is deprecated. Please use a userland alternative instead. (Use
node --trace-deprecation ... to show where the warning was created) โ Analyzing file:///Users/timcleave โฆ e-static-assets-properly AnalyzerError: ENOTDIR: not a directory, stat '/Users/timcleaver/Documents/Idemitsu/idemitsu-harlequin-ui/worktrees/serve-static-assets-properly/.git/**' at Analyzer.analyze (/usr/local/lib/node_modules/hint/dist/src/lib/analyzer.js:151:23) at async exports.default (/usr/local/lib/node_modules/hint/dist/src/lib/cli/analyze.js:219:9) at async /usr/local/lib/node_modules/hint/dist/src/lib/cli/actions.js:8:20 at async Object.execute (/usr/local/lib/node_modules/hint/dist/src/lib/cli.js:38:23) at async run (/usr/local/lib/node_modules/hint/dist/src/bin/hint.js:21:24) { status: 'AnalyzeError' }
As per the way git worktrees work, .git is a file. The contents of the file point to the files in the real .git folder. see: https://git-scm.com/docs/git-worktree
Contents of .hintrc:
{ "extends": ["development"] }