diff --git a/tools/hooks/pre-commit b/tools/hooks/pre-commit index c00717d5..7aef3ced 100755 --- a/tools/hooks/pre-commit +++ b/tools/hooks/pre-commit @@ -11,7 +11,7 @@ cd $script_dir cd $cur_dir -git diff > $out_file +git status -s | grep "^MM " > $out_file if [ -s $out_file ] then {