We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3800e24 commit 2ca918fCopy full SHA for 2ca918f
scripts/init-git-post-commit
@@ -1,5 +1,13 @@
1
#!/bin/sh
2
3
+check_command() {
4
+ command -v "$1" > /dev/null 2>&1 || { echo "git-stats hook script requires the \`${1}\` binary in order to run." >&2; exit 1; }
5
+}
6
+
7
+check_command "perl"
8
+check_command "printf"
9
+check_command "git"
10
11
echo "Setting up git-stats hooks.";
12
13
git_templates_dir=$(git config --global --get init.templatedir);
0 commit comments