-
Notifications
You must be signed in to change notification settings - Fork 120
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
Ignored files incorrect outside root #165
Ignored files incorrect outside root #165
Conversation
@@ -111,7 +111,7 @@ protected function listFilesToUpgrade($dir) | |||
foreach ($allFiles as $file) { | |||
$fullPath = $dir . DIRECTORY_SEPARATOR . $file; | |||
|
|||
if ($this->container->getFilesystemAdapter()->isFileSkipped($file, $fullPath, 'upgrade')) { | |||
if ($this->container->getFilesystemAdapter()->isFileSkipped($file, $fullPath, 'upgrade', $this->container->getProperty(UpgradeContainer::LATEST_PATH))) { |
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 know you hate me, but line really long :/
if (null !== $temporaryWorkspace) { | ||
$rootpath = str_replace('\\', '/', $temporaryWorkspace); | ||
} else { | ||
$rootpath = str_replace('\\', '/', $this->prodRootDir); |
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.
$rootpath = str_replace('\\', '/', null !== $temporaryWorkspace ? $temporaryWorkspace : $this->prodRootDir);
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 chose to not write as you suggested. This makes the line quite difficult to read.
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.
And like this ? :D
$rootpath = str_replace(
'\\',
'/',
null !== $temporaryWorkspace ? $temporaryWorkspace : $this->prodRootDir
);
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.
Meh, ok!
Duplicates #160
Recreated to be on the proper branch.
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)