mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-09-27 05:25:53 +08:00
[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:
@@ -11,7 +11,7 @@ cd $script_dir
|
|||||||
|
|
||||||
cd $cur_dir
|
cd $cur_dir
|
||||||
|
|
||||||
git diff > $out_file
|
git status -s | grep "^MM " > $out_file
|
||||||
|
|
||||||
if [ -s $out_file ]
|
if [ -s $out_file ]
|
||||||
then {
|
then {
|
||||||
|
Reference in New Issue
Block a user