You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
git-secret/utils/pre-commit.sh

17 lines
220 B
Bash

9 years ago
#!/usr/bin/env bash
set -e
9 years ago
unset GIT_WORK_TREE
# Run tests:
make test
if [[ $(git rev-parse --abbrev-ref HEAD) == "master" ]]; then
# Build new manuals:
make build-man
9 years ago
# Add new files:
git add man/man1/*
fi