Closed (duplicate)
Project:
Drush Make
Version:
6.x-2.2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2011 at 09:53 UTC
Updated:
9 May 2011 at 18:25 UTC
Jump to comment: Most recent file
Comments
Comment #1
cyberwolf commentedRelated to http://drupal.org/node/745224
Comment #2
q0rban commentedYeah, I don't think drush_make uses git apply yet for patches. It should probably be default behavior for download type == git.
Comment #3
q0rban commentedHmm, I tried to get the first half of this working (ie, using git apply if the download method was git). Unfortunately it seems like drush_make is deleting the .git directory right before I call git apply. Here's where I got.
Comment #4
q0rban commentedOk, here's an updated patch. Please test it out! From README.txt:
One or more patches to apply to this project. An array of URLs from which each patch should be retrieved. By default, this assumes patch should be executed with the -p1 option (see http://drupal.org/patch/create and http://groups.drupal.org/node/140204). You may specify different options using the options array on the patch. These options can either be a single string, or an array of options. projects[calendar][patch][rfc-fixes][url] = "http://drupal.org/files/issues/cal-760316-rfc-fixes-2.diff" projects[calendar][patch][rfc-fixes][md5] = "e4876228f449cb0c37ffa0f2142" ; -p1 will be used by default, but this diff was created using -p0 projects[calendar][patch][rfc-fixes][options] = "-p0" ; Alternately, you can specify an array of patch command options. projects[calendar][patch][rfc-fixes][options][] = "-p0" projects[calendar][patch][rfc-fixes][options][] = "-f"Comment #5
izmeez commentedsubscribing
Comment #6
danepowell commentedI'm quite sure this is a duplicate of #745224: Apply patches from git diff and git format-patch, correct me if I'm wrong