cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [4/4] cordova-coho git commit: Fix -r plugins mapping only to cordova-plugins rather than the group
Date Sat, 11 Apr 2015 02:23:03 GMT
Fix -r plugins mapping only to cordova-plugins rather than the group


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

Branch: refs/heads/master
Commit: 23344930c4da5f7de27f9f44990937006014f911
Parents: 210d5ce
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Apr 10 10:46:13 2015 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Apr 10 10:46:13 2015 -0400

----------------------------------------------------------------------
 src/repoutil.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/23344930/src/repoutil.js
----------------------------------------------------------------------
diff --git a/src/repoutil.js b/src/repoutil.js
index 5cf4f7b..83a7bdd 100644
--- a/src/repoutil.js
+++ b/src/repoutil.js
@@ -321,7 +321,7 @@ var pluginRepos = [
         inactive: true
     }, {
         title: 'Plugins - Other',
-        id: 'plugins',
+        id: 'cordova-plugins',
         repoName: 'cordova-plugins',
         jiraComponentName: 'Plugins',
         inactive: true
@@ -460,10 +460,9 @@ exports.repoGroups = repoGroups;
 
 function getRepoById(id, opt_repos) {
     // Strip cordova- prefix if it exists.
-    id = id.replace(/^cordova-/, '');
     var repos = opt_repos || allRepos;
     for (var i = 0; i < repos.length; ++i) {
-        if (repos[i].id == id) {
+        if (repos[i].id == id || repos[i].repoName == id) {
             return repos[i];
         }
     }


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


Mime
View raw message