8000 Cannot commit because of two execs in pre-commit · Issue #339 · phpro/grumphp · GitHub
[go: up one dir, main page]

Skip to content
Cannot commit because of two execs in pre-commit #339
@jhoffe

Description

@jhoffe

Version: 0.11.3
Bug: yes

I cannot run a commit becasue of two execs in pre-commit hook:

#!/bin/sh

#
# Run the hook command.
# Note: this will be replaced by the real command during copy.
#

# Fetch the GIT diff and format it as command input:
DIFF=$(git diff -r -p -m -M --full-index --staged | cat)

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

Can easily be fixed by removing an exec

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0