From 3405fb8a4a0b1b1fefd7c9e3117d43c1721ee331 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 3 Apr 2018 20:38:14 +0200 Subject: Check URLs before pushing Will probably come back to bite me when some URL will *literally* contain "TODO". --- hooks/pre-push | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 hooks/pre-push 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.*' -- cgit v1.2.3