You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by dr...@apache.org on 2013/10/15 20:39:57 UTC

[16/31] git commit: Fixed handling of missing directories

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 <dr...@google.com>
Authored: Mon Aug 26 13:01:32 2013 -0400
Committer: David Kemp <dr...@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();