diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-03-12 22:40:41 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-03-12 22:40:41 +0100 |
| commit | 9dfca25455dbac7fad721bac44daa9d9a149475a (patch) | |
| tree | 3fca1408fc63a679486365f7f2c12c7be590c110 | |
| parent | d1ae8a072d5de600d24409ed1c02c6fdf95b566c (diff) | |
| download | memory-leaks-9dfca25455dbac7fad721bac44daa9d9a149475a.tar.xz | |
Make hooks easier to setup & maintain
By giving them meaningful names and adding a master script to call
them all.
| -rwxr-xr-x | repo/hooks/check-links.sh (renamed from scripts/pre-push) | 2 | ||||
| -rwxr-xr-x | repo/hooks/pre-push | 3 | ||||
| -rwxr-xr-x | repo/hooks/setup.sh | 3 | ||||
| -rwxr-xr-x | repo/update-count.sh (renamed from scripts/update-count.sh) | 0 |
4 files changed, 7 insertions, 1 deletions
diff --git a/scripts/pre-push b/repo/hooks/check-links.sh index d0c019d..5681326 100755 --- a/scripts/pre-push +++ b/repo/hooks/check-links.sh @@ -1,4 +1,4 @@ -#/bin/bash +#!/bin/bash echo "Checking for unresolved links…" diff --git a/repo/hooks/pre-push b/repo/hooks/pre-push new file mode 100755 index 0000000..ad0e03f --- /dev/null +++ b/repo/hooks/pre-push @@ -0,0 +1,3 @@ +#/bin/bash + +./repo/hooks/check-links.sh diff --git a/repo/hooks/setup.sh b/repo/hooks/setup.sh new file mode 100755 index 0000000..ffb52ca --- /dev/null +++ b/repo/hooks/setup.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +git config --local core.hooksPath repo/hooks diff --git a/scripts/update-count.sh b/repo/update-count.sh index d0a094e..d0a094e 100755 --- a/scripts/update-count.sh +++ b/repo/update-count.sh |
