| Index: build/git-hooks/pre-commit
|
| diff --git a/build/git-hooks/pre-commit b/build/git-hooks/pre-commit
|
| index 790e14ec8412cd5a954cb785e1bce78367e6813d..41b596344c4bc0295f5ad383fb8f74b291c5eda2 100755
|
| --- a/build/git-hooks/pre-commit
|
| +++ b/build/git-hooks/pre-commit
|
| @@ -49,7 +49,7 @@ gitmodules_diff() {
|
| git diff-index --cached "$1" .gitmodules
|
| }
|
|
|
| -if test "$(git ls-files .gitmodules)" -a "$(gitmodules_diff $head_ref)"; then
|
| +if [ "$(git ls-files .gitmodules)" ] && [ "$(gitmodules_diff $head_ref)" ]; then
|
| cat <<EOF 1>&2
|
| You are trying to commit a change to .gitmodules. That is not allowed.
|
| To make changes to submodule names/paths, edit DEPS.
|
|
|