restore-util.js can't handle git urls#262
restore-util.js can't handle git urls#262hstaudacher wants to merge 1 commit intoapache:masterfrom hstaudacher:master
Conversation
When adding a plugin to the config.xml using a git url e.g. <plugin name="https://..." /> a spec is not needed because the plugin needs to be checked out by git. The restore-util.js has a bug that uses the spec of a plugin when the spec is not valid. This does not make sense because a) a spec without a name is not a valid plugin and b) a git url doe snot has a spec. This commit changes the resture-util to use the pluginEntry.name instead of the spec if the spec is not valid.
|
Hey @hstaudacher, I think you're using the plugin syntax within config.xml in a wrong way. It's not supposed to be : For example: I think we should file a documentation bug if it isn't clear enough. |
|
sorry don't see your examples |
|
Ooops, updated my comments, now you should see the examples. |
|
Also keep in mind that instead of modifying the config.xml manually, you can do : |
|
To clarify - the |
|
Alright, thanks guys, I couldn't find any documentation for this. Will close the request now. |
When adding a plugin to the config.xml using a git url e.g. a spec is not needed because the plugin needs to be checked out by git. The restore-util.js has a bug that uses the spec of a plugin when the spec is not valid. This does not make sense because a) a spec without a name is not a valid plugin and b) a git url doe snot has a spec. This commit changes the resture-util to use the pluginEntry.name instead of the spec if the spec is not valid.