conventional-changelog/commitlint
Error when working from within a branch worktree
已關閉
#787 建立於 2019年9月13日
bughelp wanted
倉庫指標
- 星標
- (15,497 顆星)
- PR 合併指標
- (平均合併 12小時 56分鐘) (30 天內合併 52 個 PR)
描述
When trying to run commitlint from within a branch worktree directory, I get the following error: could not find git root from undefined
Expected Behavior
The operation should succeed without error.
Current Behavior
The operation errors with could not find git root from undefined
Affected packages
- cli
- core
- prompt
- config-angular
Steps to Reproduce (for bugs)
- Checkout a repo
- Checkout a different branch into a separate folder via worktree:
git worktree add -b my-branch ../my-branch - CD into the branch folder
- Make some changers
- Try to commit
Your Environment
| Executable | Version |
|---|---|
commitlint --version |
8.1.0 |
git --version |
git version 2.20.1.windows.1 |
node --version |
v10.14.1 |