I attempted to make a patch using Making a Drupal patch with Git and ran into one issue after creating the patch. For some reason, I cannot get the proper location to be stored in the patch.
How can I get the desired results in the patch?
- the issue is that it is setting diff --git "a/docroot/modules/contrib/video_embed_vidyard/src..."
Command used to generate the patch:
git diff <commit#1> <commit#2> > patch-name.patch
diff --git a/docroot/modules/contrib/video_embed_vidyard/src/Plugin/video_embed_field/Provider/Vidyard.php b/docroot/modules/contrib/video_embed_vidyard/src/Plugin/video_embed_field/Provider/Vidyard.php index 94a7dc26b..4de97deb7 100644 --- a/docroot/modules/contrib/video_embed_vidyard/src/Plugin/video_embed_field/Provider/Vidyard.php +++ b/docroot/modules/contrib/video_embed_vidyard/src/Plugin/video_embed_field/Provider/Vidyard.php
diff --git a/src/Plugin/video_embed_field/Provider/Vidyard.php b/src/Plugin/video_embed_field/Provider/Vidyard.php index 94a7dc2..be635ad 100644 --- a/src/Plugin/video_embed_field/Provider/Vidyard.php +++ b/src/Plugin/video_embed_field/Provider/Vidyard.php
- I want to be able to generate