cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From drk...@apache.org
Subject [16/31] git commit: Fixed handling of missing directories
Date Tue, 15 Oct 2013 18:39:57 GMT
Fixed handling of missing directories


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

Branch: refs/heads/master
Commit: 648815243568f05dcc91c1a996d4c00fcfd1acdb
Parents: 9671725
Author: David Kemp <drkemp@google.com>
Authored: Mon Aug 26 13:01:32 2013 -0400
Committer: David Kemp <drkemp@chromium.org>
Committed: Tue Oct 15 14:12:21 2013 -0400

----------------------------------------------------------------------
 checkout.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/64881524/checkout.js
----------------------------------------------------------------------
diff --git a/checkout.js b/checkout.js
index 77c2d09..ff78120 100644
--- a/checkout.js
+++ b/checkout.js
@@ -24,10 +24,9 @@ repos.repos.forEach( function(repo) {
         var branch = repo.current;
         if(isRelease) branch = repo.release;
         var dir = getDir(repo.repo);
-        if(fs.statSync(dir).isDirectory() ) {
+        if(fs.existsSync(dir) && fs.statSync(dir).isDirectory() ) {
             shell.pushd(dir);
             if(fs.existsSync('.git')) {
-    console.log('checking '+JSON.stringify(repo));
                 var cmdout = shell.exec('git checkout '+branch);
             }
             shell.popd();


Mime
View raw message