[tools]: Update pre-commit hook

Set pre-commit hook to detect changes on staged file.

Change-Id: I041a82577263abcdfffc146b5aaba1d0a51def76
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen 2019-08-20 11:22:29 +08:00
parent bbbc9afd5e
commit 796bfb0a97

View File

@ -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 {