conventional-changelog/commitlint

Error when working from within a branch worktree

クローズ

#787 opened on 2019/09/13

 (13 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (896 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (15,497 個のスター)
PR merge metrics
 (平均マージ 12h 56m) (30d で 52 merged PRs)

説明

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)

  1. Checkout a repo
  2. Checkout a different branch into a separate folder via worktree: git worktree add -b my-branch ../my-branch
  3. CD into the branch folder
  4. Make some changers
  5. 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

コントリビューターガイド