Skip to content

Commit a3d71c7

Browse files
committed
fixup! fix(git-node): use stash and detached head for release operations
1 parent e358139 commit a3d71c7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/git/release.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,11 @@ function release(state, argv) {
123123
}
124124

125125
async function wrapStash(fn) {
126-
const stashTip = await forceRunAsync('git', ['stash', 'list', '-1', '--format="%gd"'], { ignoreFailure: false, captureStdout: true });
126+
const stashTip = await forceRunAsync('git', ['stash', 'list', '-1', '--format="%gd"'],
127+
{ ignoreFailure: false, captureStdout: true });
127128
await forceRunAsync('git', ['stash', '--include-untracked'], { ignoreFailure: false });
128-
const newStashTip = await forceRunAsync('git', ['stash', 'list', '-1', '--format="%gd"'], { ignoreFailure: false, captureStdout: true });
129+
const newStashTip = await forceRunAsync('git', ['stash', 'list', '-1', '--format="%gd"'],
130+
{ ignoreFailure: false, captureStdout: true });
129131
const hasStashed = newStashTip !== stashTip && newStashTip.trim();
130132
try {
131133
await fn();

0 commit comments

Comments
 (0)