-
Notifications
You must be signed in to change notification settings - Fork 440
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
Force git hooks to contain unix styled commands #463
Conversation
$arguments = $this->createArgumentsForCommand('grumphp'); | ||
$arguments = $this->createArgumentsForCommand('grumphp', false); | ||
$arguments->shouldHaveType(ProcessArgumentsCollection::class); | ||
$arguments[0]->shouldBe('/usr/bin/grumphp'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$arguments->shouldHaveKeyWithValue(0, '/usr/bin/grumphp');
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me, it's more readable as it is right now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
src/Process/ProcessBuilder.php
Outdated
@@ -43,11 +43,12 @@ public function __construct(GrumPHP $config, ExternalCommand $externalCommandLoc | |||
/** | |||
* @param string $command | |||
* | |||
* @param bool $forceUnix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be on line 45 (swap the newline)
This bug was introduced in version 0.13 : before we used to force the git hook command to be unix styled.
(reference: 415fd1a#diff-aed6b638f2d7de8614c3516d7939c1a0L135 )