Skip to content

Commit 89216b3

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent e147d1d commit 89216b3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

tools/git/hooks/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ skip_lint="${SKIP_LINT_COMMIT}"
3333
# Get the path to a file containing the commit message:
3434
commit_message="$1"
3535

36-
# Determine git directory (resolves where `${root}/.git` is file OR directory):
36+
# Resolve the location of the Git directory:
3737
git_dir=$(git rev-parse --absolute-git-dir)
3838

3939
# Define the path to a report generated during the pre-commit hook:

tools/git/hooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ skip_editorconfig="${SKIP_LINT_EDITORCONFIG}"
5050
# Determine root directory:
5151
root=$(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:
5454
git_dir=$(git rev-parse --absolute-git-dir)
5555

5656
# Define the path to a utility for linting filenames:

tools/git/hooks/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ GIT_CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
5959
# Determine root directory:
6060
root=$(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:
6363
git_dir=$(git rev-parse --absolute-git-dir)
6464

6565
# Define the path to a directory for caching hook results:

0 commit comments

Comments
 (0)