Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests if there are hooks generated by templates #434

Merged
merged 2 commits into from
Jan 12, 2021

Conversation

lufia
Copy link
Contributor

@lufia lufia commented Nov 30, 2020

If there are custom hooks in ~/.git_template/hooks, they can occur an error on such as pre-commit hooks.

I have a pre-commit hook in the template dir:

function must()
{
	local v=$(git config --get $1)
	if ! [[ $v = $2 ]]
	then
		echo >&2 "$1=$v: must match $2"
		exit 1
	fi
}

must user.name xxx
must user.email xxx@example.com

If there are custom hooks in ~/.git_template/hooks,
they can occur an error on such as pre-commit hooks.
@lufia lufia requested a review from cplee as a code owner November 30, 2020 08:01
@cplee cplee merged commit 8887daa into nektos:master Jan 12, 2021
@lufia lufia deleted the clean-custom-hooks branch January 12, 2021 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants