Skip to content

Commit eaa7e2a

Browse files
delete existing branch (codesandbox#3116)
1 parent 40e4237 commit eaa7e2a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testpr-script.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ async function test(prId) {
3232

3333
Promise.resolve()
3434
.then(() => spawnPromise('git', ['checkout', 'master']))
35+
.then(() => spawnPromise('git', ['branch', '-D', branchName]))
36+
.catch(() => {
37+
/* Do not care if this fails */
38+
})
3539
.then(() => spawnPromise('git', ['pull']))
3640
.then(() =>
3741
spawnPromise('git', [

0 commit comments

Comments
 (0)