summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mrjones/oauth/pre-commit.sh
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2022-01-14 18:16:05 -0500
committerGitHub <noreply@github.com>2022-01-14 18:16:05 -0500
commit84145e45c50130922fae9055535ab5ea0378e1d4 (patch)
treefce077a5ae462840bb876ace79aca42abab29ed7 /vendor/github.com/mrjones/oauth/pre-commit.sh
parent2b16ca7c773de278ba01f122dc6f9f43d7534c52 (diff)
downloadgitea-84145e45c50130922fae9055535ab5ea0378e1d4.tar.gz
gitea-84145e45c50130922fae9055535ab5ea0378e1d4.zip
Remove golang vendored directory (#18277)
* rm go vendor * fix drone yaml * add to gitignore
Diffstat (limited to 'vendor/github.com/mrjones/oauth/pre-commit.sh')
-rw-r--r--vendor/github.com/mrjones/oauth/pre-commit.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/vendor/github.com/mrjones/oauth/pre-commit.sh b/vendor/github.com/mrjones/oauth/pre-commit.sh
deleted file mode 100644
index 91b9e88236..0000000000
--- a/vendor/github.com/mrjones/oauth/pre-commit.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-# ln -s $PWD/pre-commit.sh .git/hooks/pre-commit
-go test *.go
-RESULT=$?
-if [[ $RESULT != 0 ]]; then
- echo "REJECTING COMMIT (test failed with status: $RESULT)"
- exit 1;
-fi
-
-go fmt *.go
-for e in $(ls examples); do
- go build examples/$e/*.go
- RESULT=$?
- if [[ $RESULT != 0 ]]; then
- echo "REJECTING COMMIT (Examples failed to compile)"
- exit $RESULT;
- fi
- go fmt examples/$e/*.go
-done
-
-exit 0