Skip to content

Commit

Permalink
fix: Fix PR checkout command suggestion without track as it behaves w…
Browse files Browse the repository at this point in the history
…eird because of the `/`
  • Loading branch information
marcbachmann committed Jun 28, 2021
1 parent cc38215 commit 79a993d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ async function backportApp (app) {
`Please do this backport manually.`,
...(err.pr ? ['```',
`git fetch origin/${targetBranch}`,
`git checkout -b backport/${issue.number}/${targetBranch} ${targetBranch} -t origin/backport/${issue.number}/${targetBranch}`,
`git checkout -b backport/${issue.number}/${targetBranch} ${targetBranch}`,
`git cherry-pick ${err.pr.base.sha}..${err.pr.head.sha}`,
`git push`,
`git push -u origin backport/${issue.number}/${targetBranch}`,
'```'
] : []),
'```js',
Expand Down

0 comments on commit 79a993d

Please sign in to comment.