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:
parent
dd6b4d15c8
commit
830ff1b812
2
check.sh
2
check.sh
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user