[ 
https://issues.apache.org/jira/browse/CB-8003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14206578#comment-14206578
 ] 

ASF subversion and git services commented on CB-8003:
-----------------------------------------------------

Commit 1c983ea784b34260daf66b85eef492e118659304 in cordova-mobile-spec's branch 
refs/heads/master from [~iclelland]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-mobile-spec.git;h=1c983ea ]

CB-8003: Print a useful error message when tools repos aren't on a named 
branch, instead of dying.


> createmobilespec.js dies abruptly when git repos are not on branches
> --------------------------------------------------------------------
>
>                 Key: CB-8003
>                 URL: https://issues.apache.org/jira/browse/CB-8003
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: mobile-spec
>            Reporter: Ian Clelland
>            Assignee: Ian Clelland
>
> By default, shelljs.exec will kill the running process if its subprocess 
> returns error code 1, 2, or >126. This happens early in createmobilespec.sh 
> if one of the git repos is not checked out to a named branch.
> (Specifically, {{git symbolic-ref HEAD}} returns code 128, prints "fatal: 
> HEAD is not a symbolic ref", and then shelljs kills createmobilespec.js)
> I'm solving this by temporarily changing the global {{shelljs.config.fatal}} 
> to {{false}} for the duration of the {{git}} command. There are probably 
> other places we could fix this, and we may want to look at whether it should 
> be set to false at the top of every script which uses exec().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to