You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2013/08/19 21:01:50 UTC
[jira] [Updated] (CB-4622) Allow git URLs to contain tags / hashes
[ https://issues.apache.org/jira/browse/CB-4622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Grieve updated CB-4622:
------------------------------
Description:
plugman.fetch allows you to pass in a git ref to checkout after fetching. It's not currently exposed by the command-line though (only exposed through CLI)
Instead of having this as a separate argument to the fetch function, we should build it into the URL.
NPM (refer to https://npmjs.org/doc/install.html): uses <protocol>://[<user>@]<hostname><separator><path>[#<commit-ish>]
We also need to specify a sub-directory, so let's use:
<protocol>://[<user>@]<hostname><separator><path>[#<commit-ish>][:subdir]
subdir does *not* start with a /.
Our 3.0 instruction could then look like:
"Install via plugman install http://.../cordova-plugin-geolocation.git#stable"
was:
plugman.fetch allows you to pass in a git ref to checkout after fetching. It's not currently exposed by the command-line though (only exposed through CLI)
Instead of having this as a separate argument to the fetch function, we should build it into the URL.
We should follow the format used by NPM:
<protocol>://[<user>@]<hostname><separator><path>[#<commit-ish>]
(refer to https://npmjs.org/doc/install.html)
That way our 3.0 instruction could be:
"Install via plugman install http://.../cordova-plugin-geolocation.git#stable"
> Allow git URLs to contain tags / hashes
> ---------------------------------------
>
> Key: CB-4622
> URL: https://issues.apache.org/jira/browse/CB-4622
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugman
> Reporter: Andrew Grieve
> Assignee: Filip Maj
>
> plugman.fetch allows you to pass in a git ref to checkout after fetching. It's not currently exposed by the command-line though (only exposed through CLI)
> Instead of having this as a separate argument to the fetch function, we should build it into the URL.
> NPM (refer to https://npmjs.org/doc/install.html): uses <protocol>://[<user>@]<hostname><separator><path>[#<commit-ish>]
> We also need to specify a sub-directory, so let's use:
> <protocol>://[<user>@]<hostname><separator><path>[#<commit-ish>][:subdir]
> subdir does *not* start with a /.
> Our 3.0 instruction could then look like:
> "Install via plugman install http://.../cordova-plugin-geolocation.git#stable"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira