mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-02-12 11:46:10 +02:00
Fix git hooks
This commit is contained in:
parent
5d4091438b
commit
83c00a9e2b
@ -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,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user