Skip to content

Commit f9f80aa

Browse files
Revert "Merge pull request peter-evans#637 from peter-evans/prune-remote"
This reverts commit ce699aa, reversing changes made to ff0beed.
1 parent d1fd3e1 commit f9f80aa

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

dist/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,6 @@ function createPullRequest(inputs) {
432432
if (branchRemoteName == 'origin' && base == inputs.branch) {
433433
throw new Error(`The 'base' and 'branch' for a pull request must be different branches. Unable to continue.`);
434434
}
435-
// For self-hosted runners the repository state persists between runs.
436-
// This command prunes the stale remote ref when the pull request branch was
437-
// deleted after being merged or closed. Without this the push using
438-
// '--force-with-lease' fails due to "stale info."
439-
// https://github.com/peter-evans/create-pull-request/issues/633
440-
yield git.exec(['remote', 'prune', branchRemoteName]);
441435
core.endGroup();
442436
// Apply the branch suffix if set
443437
if (inputs.branchSuffix) {

src/create-pull-request.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,6 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
126126
`The 'base' and 'branch' for a pull request must be different branches. Unable to continue.`
127127
)
128128
}
129-
// For self-hosted runners the repository state persists between runs.
130-
// This command prunes the stale remote ref when the pull request branch was
131-
// deleted after being merged or closed. Without this the push using
132-
// '--force-with-lease' fails due to "stale info."
133-
// https://github.com/peter-evans/create-pull-request/issues/633
134-
await git.exec(['remote', 'prune', branchRemoteName])
135129
core.endGroup()
136130

137131
// Apply the branch suffix if set

0 commit comments

Comments
 (0)