()
| 12 | const GITHUB_URL = 'https://github.com/facebook/react'; |
| 13 | |
| 14 | function getGitCommit() { |
| 15 | try { |
| 16 | return execSync('git show -s --no-show-signature --format=%h') |
| 17 | .toString() |
| 18 | .trim(); |
| 19 | } catch (error) { |
| 20 | // Mozilla runs this command from a git archive. |
| 21 | // In that context, there is no Git revision. |
| 22 | return null; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | function getVersionString(packageVersion = null) { |
| 27 | if (packageVersion == null) { |
no test coverage detected