Skip to content

Commit

Permalink
Removed redundant hook exit code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed Jan 11, 2017
1 parent 90b71ca commit fbdd7eb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 36 deletions.
9 changes: 0 additions & 9 deletions resources/hooks/local/commit-msg
Expand Up @@ -14,12 +14,3 @@ DIFF=$(git diff -r -p -m -M --full-index --staged | cat)

# Run GrumPHP
(cd "${HOOK_EXEC_PATH}" && printf "%s\n" "${DIFF}" | exec $(HOOK_COMMAND) "--git-user=$GIT_USER" "--git-email=$GIT_EMAIL" "$COMMIT_MSG_FILE")

# Validate exit code of above command
RC=$?
if [ "$RC" != 0 ]; then
exit $RC;
fi

# Clean exit:
exit 0;
9 changes: 0 additions & 9 deletions resources/hooks/local/pre-commit
Expand Up @@ -10,12 +10,3 @@ DIFF=$(git diff -r -p -m -M --full-index --staged | cat)

# Run GrumPHP
(cd "${HOOK_EXEC_PATH}" && printf "%s\n" "${DIFF}" | exec $(HOOK_COMMAND) '--skip-success-output')

# Validate exit code of above command
RC=$?
if [ "$RC" != 0 ]; then
exit $RC;
fi

# Clean exit:
exit 0;
9 changes: 0 additions & 9 deletions resources/hooks/vagrant/commit-msg
Expand Up @@ -37,12 +37,3 @@ vagrant ssh --command '$(which sh)' << COMMANDS
rm \$VAGRANT_COMMIT_MSG_FILE
exit \$RC
COMMANDS

# Validate exit code of above command
RC=$?
if [ "$RC" != 0 ]; then
exit $RC;
fi

# Clean exit:
exit 0;
9 changes: 0 additions & 9 deletions resources/hooks/vagrant/pre-commit
Expand Up @@ -19,12 +19,3 @@ vagrant ssh --command '$(which sh)' << COMMANDS
printf "%s\n" "\${DIFF}" | exec $(HOOK_COMMAND) '--ansi' '--skip-success-output'
COMMANDS

# Validate exit code of above command
RC=$?
if [ "$RC" != 0 ]; then
exit $RC;
fi

# Clean exit:
exit 0;

0 comments on commit fbdd7eb

Please sign in to comment.