[ 
https://issues.apache.org/jira/browse/CB-5065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13795290#comment-13795290
 ] 

Braden Shepherdson commented on CB-5065:
----------------------------------------

I believe that extra tmp_dir is from a time when the command was 'cd "%s"; git 
checkout "%s"'. But that has since been replaced with passing the cwd parameter 
to child_process.exec. It's a bit worrying that the tests didn't catch this, 
though.

> Using git-ref on "cordova plugin add" fails with error
> ------------------------------------------------------
>
>                 Key: CB-5065
>                 URL: https://issues.apache.org/jira/browse/CB-5065
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugman
>            Reporter: Marcel Kinard
>            Assignee: Marcel Kinard
>            Priority: Minor
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to