Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
When trying to add a plugin using a git-ref, it fails with an error:
$ ../cordova-cli/bin/cordova --verbose plugin add https://github.com/apache/cordova-plugin-console.git#r0.2.0
Calling plugman.fetch on plugin "https://github.com/apache/cordova-plugin-console.git#r0.2.0"
Fetching plugin from "https://github.com/apache/cordova-plugin-console.git#r0.2.0"...
Fetching plugin from "https://github.com/apache/cordova-plugin-console.git"...
Fetching plugin via git-clone command: git clone "https://github.com/apache/cordova-plugin-console.git" "plugman-tmp1381514955645"
Plugin "https://github.com/apache/cordova-plugin-console.git" fetched.
Error: Error fetching plugin: Error: Command failed: error: pathspec 'r0.2.0' did not match any file(s) known to git.
at /Users/marcelk/Developer/apache/cordova-cli/src/plugin.js:94:41
at _rejected (/Users/marcelk/Developer/apache/cordova-cli/node_modules/q/q.js:808:24)
at /Users/marcelk/Developer/apache/cordova-cli/node_modules/q/q.js:834:30
at Promise.when (/Users/marcelk/Developer/apache/cordova-cli/node_modules/plugman/node_modules/q/q.js:1079:31)
at Promise.promise.promiseDispatch (/Users/marcelk/Developer/apache/cordova-cli/node_modules/plugman/node_modules/q/q.js:752:41)
at /Users/marcelk/Developer/apache/cordova-cli/node_modules/plugman/node_modules/q/q.js:574:44
at flush (/Users/marcelk/Developer/apache/cordova-cli/node_modules/plugman/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:415:13)