Ian Clelland created CB-8003:
--------------------------------
Summary: 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]