Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 34F3B17932 for ; Tue, 10 Mar 2015 17:09:17 +0000 (UTC) Received: (qmail 26113 invoked by uid 500); 10 Mar 2015 17:09:13 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 26071 invoked by uid 500); 10 Mar 2015 17:09:13 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 26059 invoked by uid 99); 10 Mar 2015 17:09:13 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2015 17:09:13 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2F931E1860; Tue, 10 Mar 2015 17:09:13 +0000 (UTC) From: dmitriy-barkalov To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-medic pull request: Medic Refactor Content-Type: text/plain Message-Id: <20150310170913.2F931E1860@git1-us-west.apache.org> Date: Tue, 10 Mar 2015 17:09:13 +0000 (UTC) Github user dmitriy-barkalov commented on a diff in the pull request: https://github.com/apache/cordova-medic/pull/37#discussion_r26141990 --- Diff: bin/checkout.js --- @@ -0,0 +1,46 @@ +#!/usr/bin/env node + +// node dependencies +var fs = require('fs'); + +// external dependencies +var shell = require('shelljs'); + +// parse args +var argv = require('optimist') + .usage('Usage: $0 --config [path]') + .demand('config') + .argv; + +function cloneProject(projectName, projectsConfig) { + + var project = projectsConfig[projectName]; + var codebase = project.codebases[project.codebase]; + var command = 'git clone ' + codebase.repo + ' --branch=' + codebase.branch + ' --depth 1' + + shell.exec(command, {async: false}, function (returnCode, output) { --- End diff -- `async: false` doesn't make this call synchronous. Now `exec` method sets async to true if callback is provided https://github.com/arturadib/shelljs/blob/master/src/exec.js#L167. Remove `{async: false}` or callback to avoid confusion and side effects regarding shelljs internal changes --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org