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

Mark Koudritsky commented on CB-6823:
-------------------------------------

A related later change:
https://git-wip-us.apache.org/repos/asf?p=cordova-lib.git;h=13fe6b03

> Cannot --copy-from app with same name prefix as target from same directory
> --------------------------------------------------------------------------
>
>                 Key: CB-6823
>                 URL: https://issues.apache.org/jira/browse/CB-6823
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.5.0
>            Reporter: Michal Mocny
>            Assignee: Michal Mocny
>            Priority: Minor
>
> With --copy-from and --link-to we try to protect users targeting a directory 
> which is a direct ancestor, or else we recursively copy/link.
> However, there was a bug in the check which also prevented sourcing a sibling 
> which had the exact same prefix.  I.e., if you had:
> ```
> > ls
> Test
> > cordova create Test2 --copy-from=Test
> ...
> ```
> You would get an error, because it thought that `Test` was a parent of 
> `Test2` since the fully resolved paths of both are a prefix match.
> Instead, I will change this to make sure the actual relative paths are not 
> direct ancestors.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to