Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/promote_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { pipeline } from 'node:stream/promises';
import semver from 'semver';
import * as gst from 'git-secure-tag';

import { forceRunAsync } from './run.js';
import { forceRunAsync, runSync } from './run.js';
import PRData from './pr_data.js';
import PRChecker from './pr_checker.js';
import Session from './session.js';
Expand Down Expand Up @@ -59,7 +59,8 @@ export default class ReleasePromotion extends Session {
if (!localCloneIsClean) {
if (await cli.prompt('Should we checkout the release proposal?')) {
cli.startSpinner('Fetching the proposal upstream...');
await forceRunAsync('git', ['fetch', proposalUpstreamRemote, releaseCommitSha],
// We need a sync spawn here to avoid the spinner getting in the way of SSH key passphrase
runSync('git', ['fetch', proposalUpstreamRemote, releaseCommitSha],
{ ignoreFailure: false });
await forceRunAsync('git', ['checkout', releaseCommitSha], { ignoreFailure: false });
cli.stopSpinner('Local HEAD is now in sync with the proposal');
Expand Down
Loading