Skip to content

Commit

Permalink
Merge pull request #134 from gabyx/bugfix/install-and-update-corehook…
Browse files Browse the repository at this point in the history
…spath

Correct detect template dir for core.hooksPath install modes
  • Loading branch information
rycus86 committed Oct 8, 2020
2 parents c546ec2 + 76b49e6 commit 1cb6bf0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/step-114.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,21 @@ if ! grep 'Testing 114' /tmp/test114.out; then
echo "! Expected hook did not run"
exit 6
fi

# Reset to trigger update
if ! (cd ~/.githooks/release && git reset --hard HEAD~1 >/dev/null); then
echo "! Could not reset master to trigger update."
exit 1
fi

rm -rf ~/.githooks/templates/hooks/* # Remove to see if the correct folder gets choosen

if ! git hooks update; then
echo "! Failed to run the update"
exit 1
fi

if [ ! -f ~/.githooks/templates/hooks/pre-commit ]; then
echo "! Expected update to install wrappers into \`~/.githooks/templates\`"
exit 1
fi

0 comments on commit 1cb6bf0

Please sign in to comment.