Skip to content
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

Merged
merged 2 commits into from
Feb 23, 2018

Conversation

veewee
Copy link
Contributor

@veewee veewee commented Feb 8, 2018

Q A
Branch master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Documented? no
Fixed tickets #458, #462, #447

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 )

$arguments = $this->createArgumentsForCommand('grumphp');
$arguments = $this->createArgumentsForCommand('grumphp', false);
$arguments->shouldHaveType(ProcessArgumentsCollection::class);
$arguments[0]->shouldBe('/usr/bin/grumphp');
Copy link
Contributor

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');

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -43,11 +43,12 @@ public function __construct(GrumPHP $config, ExternalCommand $externalCommandLoc
/**
* @param string $command
*
* @param bool $forceUnix
Copy link
Contributor

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)

@veewee veewee merged commit 70e9d25 into phpro:master Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants