Index: git-hooks/pre-commit |
=================================================================== |
--- git-hooks/pre-commit (revision 249215) |
+++ git-hooks/pre-commit (working copy) |
@@ -23,7 +23,8 @@ |
exit 1 |
fi |
-if test "$(git diff-index --cached HEAD .gitmodules)"; then |
+if [[ -n "$(git ls-files .gitmodules)" && |
Ami GONE FROM CHROMIUM
2014/03/10 19:04:49
Sample noise that this silences:
fatal: ambiguous
|
+ -n "$(git diff-index --cached HEAD .gitmodules)" ]]; 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. |