You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Michal Mocny (JIRA)" <ji...@apache.org> on 2014/05/30 20:03:02 UTC

[jira] [Issue Comment Deleted] (CB-6823) Cannot --copy-from app with same name prefix as target from same directory

     [ https://issues.apache.org/jira/browse/CB-6823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michal Mocny updated CB-6823:
-----------------------------

    Comment: was deleted

(was: Testing comments `with code`:

```
Test
```

Since I recall these work, but apparently not in bug summaries.)

> 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)