Skip to content

Commit e147d1d

Browse files
committed
fix: remove unused root variable from commit-msg hook
The `commit-msg` hook never referenced `${root}`. Touching the file for the worktree fix surfaced the pre-existing SC2034 warning; remove the dead line rather than carrying it forward.
1 parent 52eac40 commit e147d1d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

tools/git/hooks/commit-msg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ skip_lint="${SKIP_LINT_COMMIT}"
3333
# Get the path to a file containing the commit message:
3434
commit_message="$1"
3535

36-
# Determine root directory:
37-
root=$(git rev-parse --show-toplevel)
38-
3936
# Determine git directory (resolves where `${root}/.git` is file OR directory):
4037
git_dir=$(git rev-parse --absolute-git-dir)
4138

0 commit comments

Comments
 (0)