Files
charts/githooks/pre-commit/upstreamed
Carlos Rodriguez Hernandez b17924ae7f Fix hook condition
2019-09-17 07:35:51 +00:00

9 lines
273 B
Bash
Executable File

#!/bin/bash
if git diff --name-only --cached | grep 'upstreamed/'; then
printf '\n\U1F6AB Commit cancelled\n\nChanges detected in the "upstreamed" folder.\nPlease, implement them in the Helm Charts repository (https://github.com/helm/charts).\n'
exit 1
fi
exit 0