summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2018-04-03 20:38:14 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2018-04-03 20:38:14 +0200
commit3405fb8a4a0b1b1fefd7c9e3117d43c1721ee331 (patch)
tree80478cc220cd0b7dc76cf55127b292d1c3fd8a2c /hooks
parentffa9611551cba179a565b3e01eb8df62c70507fc (diff)
downloadmemory-leaks-3405fb8a4a0b1b1fefd7c9e3117d43c1721ee331.tar.xz
Check URLs before pushing
Will probably come back to bite me when some URL will *literally* contain "TODO".
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/pre-push5
1 files changed, 5 insertions, 0 deletions
diff --git a/hooks/pre-push b/hooks/pre-push
new file mode 100755
index 0000000..d0c019d
--- /dev/null
+++ b/hooks/pre-push
@@ -0,0 +1,5 @@
+#/bin/bash
+
+echo "Checking for unresolved links…"
+
+! grep -Er '^\[.*\]:.*TODO.*'