GeezerVison is showing github.com — Add --no-show-signature to "git show" commands (#23038) · react/react@9a7e6bf
File treeExpand file treeCollapse file tree Open diff view settings packages/react-devtools-extensions
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-extensions/utils.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -20,7 +20,7 @@ const GITHUB_URL = 'https://github.com/facebook/react'; | 20 | 20 |
| 21 | 21 | function getGitCommit() { | 22 | 22 | try { | 23 | | - return execSync('git show -s --format=%h') | | 23 | + return execSync('git show -s --no-show-signature --format=%h') | 24 | 24 | .toString() | 25 | 25 | .trim(); | 26 | 26 | } catch (error) { | |
Collapse file Copy file name to clipboardExpand all lines: scripts/release/utils.js +4-2Lines changed: 4 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -72,7 +72,9 @@ const getBuildInfo = async () => { | 72 | 72 | const branch = await execRead('git branch | grep \\* | cut -d " " -f2', { | 73 | 73 | cwd, | 74 | 74 | }); | 75 | | - const commit = await execRead('git show -s --format=%h', {cwd}); | | 75 | + const commit = await execRead('git show -s --no-show-signature --format=%h', { | | 76 | + cwd, | | 77 | + }); | 76 | 78 | const checksum = await getChecksumForCurrentRevision(cwd); | 77 | 79 | const dateString = await getDateStringForCommit(commit); | 78 | 80 | const version = isExperimental | @@ -106,7 +108,7 @@ const getChecksumForCurrentRevision = async cwd => { | 106 | 108 |
| 107 | 109 | const getDateStringForCommit = async commit => { | 108 | 110 | let dateString = await execRead( | 109 | | - `git show -s --format=%cd --date=format:%Y%m%d ${commit}` | | 111 | + `git show -s --no-show-signature --format=%cd --date=format:%Y%m%d ${commit}` | 110 | 112 | ); | 111 | 113 |
| 112 | 114 | // On CI environment, this string is wrapped with quotes '...'s | |
Collapse file Copy file name to clipboardExpand all lines: scripts/rollup/build-all-release-channels.js +9-3Lines changed: 9 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -19,12 +19,18 @@ const { | 19 | 19 | // by configuring an environment variable. | 20 | 20 |
| 21 | 21 | const sha = String( | 22 | | - spawnSync('git', ['show', '-s', '--format=%h']).stdout | | 22 | + spawnSync('git', ['show', '-s', '--no-show-signature', '--format=%h']).stdout | 23 | 23 | ).trim(); | 24 | 24 |
| 25 | 25 | let dateString = String( | 26 | | - spawnSync('git', ['show', '-s', '--format=%cd', '--date=format:%Y%m%d', sha]) | 27 | | - .stdout | | 26 | + spawnSync('git', [ | | 27 | + 'show', | | 28 | + '-s', | | 29 | + '--no-show-signature', | | 30 | + '--format=%cd', | | 31 | + '--date=format:%Y%m%d', | | 32 | + sha, | | 33 | + ]).stdout | 28 | 34 | ).trim(); | 29 | 35 |
| 30 | 36 | // On CI environment, this string is wrapped with quotes '...'s | |
|