Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 17F0D17BCD for ; Fri, 20 Feb 2015 01:20:12 +0000 (UTC) Received: (qmail 54811 invoked by uid 500); 20 Feb 2015 01:20:12 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 54781 invoked by uid 500); 20 Feb 2015 01:20:12 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 54768 invoked by uid 99); 20 Feb 2015 01:20:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Feb 2015 01:20:11 +0000 Date: Fri, 20 Feb 2015 01:20:11 +0000 (UTC) From: "Omar Mefire (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-8514) cordova platform add wont work if there's no master branch MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-8514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14328416#comment-14328416 ] Omar Mefire commented on CB-8514: --------------------------------- This issue is due to there being no branch called 'master' in your repo. This is an edge case that happens rarely because the default branch name in Git is master. However, it would be nice to fix it. a work-around would be to create a master branch in your repo, then retry the operation. > cordova platform add wont work if there's no master branch > --------------------------------------------------------------------- > > Key: CB-8514 > URL: https://issues.apache.org/jira/browse/CB-8514 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaLib > Reporter: Murat Sutunc > > When adding a platform using: > `cordova platform add ` > we assume there's a master branch on the git-repo. If there's no master branch `platform add` will throw: > Unable to fetch platform null@: Error: Command failed: C:\Windows\system32\cmd.exe /s /c "git checkout "master"" > error: pathspec 'master' did not match any file(s) known to git. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org