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

Fix handling of non-absolute magento path when outputting results #57

Merged
merged 3 commits into from
Jun 3, 2021

Conversation

convenient
Copy link
Contributor

@convenient convenient commented Jun 3, 2021

This PR #56 with a little test manipulation to verify it

-| Override (phtml/js/html) | vendor/magento/module-catalog/view/frontend/layout/catalog_category_view.xml          | app/design/frontend/Ampersand/theme/Magento_Catalog/layout/catalog_category_view.xml        |\n
+| Override (phtml/js/html) | vendor/magento/module-catalog/view/frontend/layout/catalog_category_view.xml          | home/travis/build/AmpersandHQ/ampersand-magento2-upgrade-patch-helper/dev/instances/magento24nodb/app/design/frontend/Ampersand/theme/Magento_Catalog/layout/catalog_category_view.xml        |\n

We were getting weird output like above

Checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • Tests have been ran / updated

convenient and others added 3 commits June 3, 2021 18:26
When providing a relative project directory such as ../../magento rather
than a full path /Users/pocallaghan/sites/magento the project root was
not correctly stripped from the "To" column in the output.

Fix by resolving the path using realpath before stripping it off.
@convenient convenient changed the title Try non usual path Fix handling of non-absolute magento path when outputting results Jun 3, 2021
@convenient convenient merged commit 630e85b into master Jun 3, 2021
@convenient convenient deleted the try-non-usual-path branch June 3, 2021 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant