Commit 9752146c authored by Ma_124's avatar Ma_124

removed hooks again

parent 3c7b6715
Pipeline #46394237 (#32) passed with stages
in 2 minutes and 42 seconds
#!/bin/sh
if [ -z "`head -n 1 $1`" ]; then
echo "commit-msg: Aborting commit due to empty commit message."
exit 1
fi
echo "Signed commit message"
awk 'NR==1,/^#/{sub(/^#/, "\n[hooks installed]\n#")} 1' $1 | tee $1
#!/bin/bash
echo "Installing git hooks..."
for f in .hooks/*.sh
do
f=${f##*/}
if [ "$f" != "install.sh" ]; then
echo "Installing .hooks/$f"
cp .hooks/$f .git/hooks/${f%*.sh}
chmod u+x .git/hooks/${f%*.sh}
fi
done
#!/bin/sh
echo "Running go fmt"
go fmt $(go list ./... | grep -v /vendor/)
echo "Running go vet"
go vet --composites=false `go list ./... | grep -v /vendor/`
if [ $? -ne 0 ]; then
echo "Please fix the go vet issue first"
exit 1
fi
#!/bin/sh
if [ -z "$NO_TEST" ]; then
go test -race `go list ./... | grep -v /vendor/`
else
echo 'Skipping tests because $NO_TEST was specified.'
fi
......@@ -35,7 +35,7 @@ It can convert [different filetypes](#filetypes) into each other and [fetch meta
If you append `-html` the markdown will be compiled with [Blackfriday][].
### `simple-markdown` (+ `-html`) (Output)
### `markdown-simple` (+ `-html`) (Output)
```md
| Name | Desc |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment