1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2026-05-16 09:18:09 +02:00

Fix git hooks

This commit is contained in:
DarthSim
2019-09-16 15:53:32 +06:00
parent 5d4091438b
commit 83c00a9e2b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/sh
if ! git diff --name-only | grep -qe ".*\.go$"; then
if ! git diff --staged --name-only | grep -qe ".*\.go$"; then
echo "Nothing to lint"
exit 0;
fi
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/sh
if ! git diff --name-only | grep -qe ".*\.(go|h|c)$"; then
if ! git diff --staged --name-only | grep -qe ".*\.(go|h|c)$"; then
echo "Nothing to test"
exit 0;
fi