1
0
mirror of https://github.com/gitattributes/gitattributes.git synced 2025-01-22 00:08:52 -05:00

fix: fix missing git directory while calling git

This commit is contained in:
Carlo Corradini 2023-08-20 01:16:58 +02:00 committed by GitHub
parent dd6b4d15c8
commit 830ff1b812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,7 +221,7 @@ verify_system() {
# Verify gitattributes
verify_gitattributes() {
_missing_attributes=$(git ls-files | git check-attr --all --stdin | grep 'text: auto' || printf '\n')
_missing_attributes=$(git "--git-dir=$GIT_DIR" ls-files | git "--git-dir=$GIT_DIR" check-attr --all --stdin | grep 'text: auto' || printf '\n')
if [ -n "$_missing_attributes" ]; then
ERROR ".gitattributes rule missing for the following files:\n$_missing_attributes"