reset precheck.sh

This commit is contained in:
凡羊羊 2019-08-30 17:05:03 +08:00
parent 1a7cc88d38
commit ee58d3be12

View File

@ -1,6 +1,6 @@
#!/bin/sh
STAGED_GO_FILES=$(git diff --name-only | grep ".go$")
STAGED_GO_FILES=$(git diff --cached --name-only | grep ".go$")
if [[ "$STAGED_GO_FILES" = "" ]]; then
exit 0