cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omef...@apache.org
Subject cordova-lib git commit: Removing the '--usegit' flag from `cordova platform`. Recommended method is to use `cordova platform add git_url#branch`
Date Wed, 02 Dec 2015 23:08:09 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master b704e7870 -> 7af5c5367


Removing the '--usegit' flag from `cordova platform`.
Recommended method is to use `cordova platform add git_url#branch`


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/7af5c536
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/7af5c536
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/7af5c536

Branch: refs/heads/master
Commit: 7af5c536725d2fe74c7fb75d850b552614b066e4
Parents: b704e78
Author: Omar Mefire <omefire@gmail.com>
Authored: Wed Dec 2 14:43:42 2015 -0800
Committer: Omar Mefire <omefire@gmail.com>
Committed: Wed Dec 2 14:43:42 2015 -0800

----------------------------------------------------------------------
 cordova-lib/src/cordova/lazy_load.js | 2 +-
 cordova-lib/src/cordova/platform.js  | 7 -------
 2 files changed, 1 insertion(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/7af5c536/cordova-lib/src/cordova/lazy_load.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/lazy_load.js b/cordova-lib/src/cordova/lazy_load.js
index f980f16..f83b539 100644
--- a/cordova-lib/src/cordova/lazy_load.js
+++ b/cordova-lib/src/cordova/lazy_load.js
@@ -92,7 +92,7 @@ function based_on_config(project_root, platform, opts) {
 // Returns a promise for the path to the lazy-loaded directory.
 function cordova(platform, opts) {
     platform = new Platform(platform);
-    var use_git = opts && opts.usegit || platform.source === 'git';
+    var use_git = platform.source === 'git';
     if ( use_git ) {
         return module.exports.cordova_git(platform);
     } else {

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/7af5c536/cordova-lib/src/cordova/platform.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/platform.js b/cordova-lib/src/cordova/platform.js
index 2f8875e..aca5352 100644
--- a/cordova-lib/src/cordova/platform.js
+++ b/cordova-lib/src/cordova/platform.js
@@ -67,13 +67,6 @@ function addHelper(cmd, hooksRunner, projectRoot, targets, opts) {
         }
     }
 
-    if (opts.usegit) {
-        msg = '\nWARNING: The --usegit flag has been deprecated! \n' +
-              'Instead, please use: `cordova platform add git-url#custom-branch`. \n' +
-              'e.g: cordova platform add https://github.com/apache/cordova-android.git#2.4.0
\n';
-        events.emit('warn', msg);
-    }
-
     var xml = cordova_util.projectConfig(projectRoot);
     var cfg = new ConfigParser(xml);
     var config_json = config.read(projectRoot);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message