cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject [4/4] git commit: Fixes tabs vs. spaces
Date Thu, 09 Oct 2014 14:08:28 GMT
Fixes tabs vs. spaces


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

Branch: refs/heads/CB-7744
Commit: 92223bbc88930a7779165b2522b4c3475f5b6bac
Parents: 27062cc
Author: Vladimir Kotikov <v-vlkoti@microsoft.com>
Authored: Thu Oct 9 18:07:41 2014 +0400
Committer: Vladimir Kotikov <v-vlkoti@microsoft.com>
Committed: Thu Oct 9 18:07:41 2014 +0400

----------------------------------------------------------------------
 src/flagutil.js    | 8 ++++----
 src/repo-clone.js  | 6 +++---
 src/repo-update.js | 2 +-
 3 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/92223bbc/src/flagutil.js
----------------------------------------------------------------------
diff --git a/src/flagutil.js b/src/flagutil.js
index 4e24a4d..3c4bf1e 100644
--- a/src/flagutil.js
+++ b/src/flagutil.js
@@ -36,10 +36,10 @@ exports.registerRepoFlag = function(opt) {
 }
 
 exports.registerDepthFlag = function(opt) {
-	return opt.options('d', {
-		alias: 'depth',
-		desc: 'Value of --depth flag for git repos.'
-	});
+    return opt.options('d', {
+        alias: 'depth',
+        desc: 'Value of --depth flag for git repos.'
+    });
 }
 
 exports.computeReposFromFlag = function(flagValue) {

http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/92223bbc/src/repo-clone.js
----------------------------------------------------------------------
diff --git a/src/repo-clone.js b/src/repo-clone.js
index 362510c..d615a6c 100644
--- a/src/repo-clone.js
+++ b/src/repo-clone.js
@@ -38,7 +38,7 @@ module.exports = function*(argv) {
         process.exit(1);
     }
 
-	var depth = argv.d ? argv.d: null;
+    var depth = argv.d ? argv.d: null;
     
     var repos = flagutil.computeReposFromFlag(argv.r);
     yield cloneRepos(repos, false, depth);
@@ -61,8 +61,8 @@ function *cloneRepos(repos, quiet, depth) {
         } else if (repo.svn) {
             clonePromises.push(executil.execHelper(executil.ARGS('svn checkout ' + repo.svn
+ ' ' + repo.repoName)));
         } else {
-			var depthArg = depth == null ? '' : '--depth ' + depth + ' ';			
-			clonePromises.push(executil.execHelper(executil.ARGS('git clone ' + depthArg + createRepoUrl(repo))));
+            var depthArg = depth === null ? '' : '--depth ' + depth + ' ';
+            clonePromises.push(executil.execHelper(executil.ARGS('git clone ' + depthArg
+ createRepoUrl(repo))));
         }
     }
 

http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/92223bbc/src/repo-update.js
----------------------------------------------------------------------
diff --git a/src/repo-update.js b/src/repo-update.js
index 2c54839..4ce7d81 100644
--- a/src/repo-update.js
+++ b/src/repo-update.js
@@ -60,7 +60,7 @@ module.exports = function*(argv) {
         process.exit(1);
     }
 
-	var depth = argv.d ? argv.d: null;
+    var depth = argv.d ? argv.d: null;
     
     var branches = Array.isArray(argv.b) ? argv.b : [argv.b];
     var repos = flagutil.computeReposFromFlag(argv.r);


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


Mime
View raw message