Closed (fixed)
Project:
Drush Make
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2010 at 22:36 UTC
Updated:
7 Feb 2010 at 05:10 UTC
This patch allows drush_make to fallback to a public url if the private one fails. This is useful for our projects where github.com has both private and public urls, and all of the programmers don't have or need contributor access to every project. This way the project downloads as an export if it can't do so as a checkout. Working, tested simple patch attached.
Thanks,
David
| Comment | File | Size | Author |
|---|---|---|---|
| drush_make-gitfallback.patch | 2.24 KB | David Goode |
Comments
Comment #1
dmitrig01 commentedPlease use parse_url instead of whatever magic you're using -- thanks!
Comment #2
David Goode commentedparse_url doesn't work properly on github's urls. This is the only git repos I've used drush make with--if there are other different url or transport formats we should support, input would be appreciated. The public and private versions, respectively, are "git://github.com/developmentseed/mn_world.git" and "git@github.com:developmentseed/mn_world.git". The former parses reasonably, but parse url can't do anything with the latter, just returning the 'path' as the entire thing, so using the built-in php function would still require some str_replacing and add'l logic to get it to a viable format, which probably isn't worthwhile.
Comment #3
dmitrig01 commentedOk, wfm. Thanks!