зеркало из https://github.com/github/vitess-gh.git
Ignore third_party and Godeps in git precommit hooks.
This commit is contained in:
Родитель
2f9d3d05e8
Коммит
86071decf6
|
@ -9,7 +9,7 @@
|
|||
# it has execute permissions.
|
||||
#
|
||||
# This script does not handle file names that contain spaces.
|
||||
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '.go$')
|
||||
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '^go/.*\.go$')
|
||||
|
||||
[ -z "$gofiles" ] && exit 0
|
||||
unformatted=$(goimports -l=true $gofiles 2>&1 | awk -F: '{print $1}')
|
||||
|
|
|
@ -15,7 +15,7 @@ if [ -z "$(which golint)" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '.go$')
|
||||
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '^go/.*\.go$')
|
||||
|
||||
errors=
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
# it has execute permissions.
|
||||
#
|
||||
# This script does not handle file names that contain spaces.
|
||||
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '.go$')
|
||||
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '^go/.*\.go$')
|
||||
|
||||
# If any checks are found to be useless, they can be disabled here.
|
||||
# See the output of "go tool vet" for a list of flags.
|
||||
|
|
Загрузка…
Ссылка в новой задаче