File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ skip_lint="${SKIP_LINT_COMMIT}"
3333# Get the path to a file containing the commit message:
3434commit_message=" $1 "
3535
36- # Determine git directory (resolves where `${root}/.git` is file OR directory) :
36+ # Resolve the location of the Git directory:
3737git_dir=$( git rev-parse --absolute-git-dir)
3838
3939# Define the path to a report generated during the pre-commit hook:
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ skip_editorconfig="${SKIP_LINT_EDITORCONFIG}"
5050# Determine root directory:
5151root=$( git rev-parse --show-toplevel)
5252
53- # Determine git directory (resolves where `${root}/.git` is file OR directory) :
53+ # Resolve the location of the Git directory:
5454git_dir=$( git rev-parse --absolute-git-dir)
5555
5656# Define the path to a utility for linting filenames:
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ GIT_CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
5959# Determine root directory:
6060root=$( git rev-parse --show-toplevel)
6161
62- # Determine git directory (resolves where `${root}/.git` is file OR directory) :
62+ # Resolve the location of the Git directory:
6363git_dir=$( git rev-parse --absolute-git-dir)
6464
6565# Define the path to a directory for caching hook results:
You can’t perform that action at this time.
0 commit comments