From 379a175fe7632ec9fefa9c66b7bfd119fe2f0fe1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 20 Nov 2019 15:50:00 +0800 Subject: [PATCH] add nosync deal --- scripts/githooks/pre-commit | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/githooks/pre-commit b/scripts/githooks/pre-commit index cec9697..d06cd5e 100755 --- a/scripts/githooks/pre-commit +++ b/scripts/githooks/pre-commit @@ -5,6 +5,11 @@ if [ $? -eq 0 ]; then exit 0 fi +if [[ -f ".nosync" ]]; then + echo "nosync proto" + exit 0 +fi + git branch|grep -q "* master" if [ $? -eq 0 ]; then svn update ../client_proto/resources/