GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add --no-show-signature to "git show" commands (#23038) · react/react@9a7e6bf

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/react-devtools-extensions
    • utils.js
  • scripts
    • release
      • utils.js
    • rollup
      • build-all-release-channels.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-devtools-extensions/utils.js‎

Copy file name to clipboardExpand all lines: packages/react-devtools-extensions/utils.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const GITHUB_URL = 'https://github.com/facebook/react';
2020

2121
function getGitCommit() {
2222
try {
23-
return execSync('git show -s --format=%h')
23+
return execSync('git show -s --no-show-signature --format=%h')
2424
.toString()
2525
.trim();
2626
} catch (error) {
Collapse file

‎scripts/release/utils.js‎

Copy file name to clipboardExpand all lines: scripts/release/utils.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ const getBuildInfo = async () => {
7272
const branch = await execRead('git branch | grep \\* | cut -d " " -f2', {
7373
cwd,
7474
});
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+
});
7678
const checksum = await getChecksumForCurrentRevision(cwd);
7779
const dateString = await getDateStringForCommit(commit);
7880
const version = isExperimental
@@ -106,7 +108,7 @@ const getChecksumForCurrentRevision = async cwd => {
106108

107109
const getDateStringForCommit = async commit => {
108110
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}`
110112
);
111113

112114
// On CI environment, this string is wrapped with quotes '...'s
Collapse file

‎scripts/rollup/build-all-release-channels.js‎

Copy file name to clipboardExpand all lines: scripts/rollup/build-all-release-channels.js
+9-3Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@ const {
1919
// by configuring an environment variable.
2020

2121
const sha = String(
22-
spawnSync('git', ['show', '-s', '--format=%h']).stdout
22+
spawnSync('git', ['show', '-s', '--no-show-signature', '--format=%h']).stdout
2323
).trim();
2424

2525
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
2834
).trim();
2935

3036
// On CI environment, this string is wrapped with quotes '...'s

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.