"Checkout source branch" button in pull request detail view should fetch source branch if it is not available locally

Issue #340 resolved
Robert Weber created an issue

The “Checkout source branch” button on the Bitbucket pull request detail view only works if the source branch has already been fetched. If the source branch has not been fetched, the extension reports a git error:

Failed to execute git

error: pathspec ‘source-branch-example-name’ did not match any file(s) known to git

The ideal behavior of the extension would be to fetch the branch from the remote repo if it doesn’t exist locally. that way the user does not have to leave the Bitbucket PR detail view to fetch the branch, then come back to checkout the branch.

As a bonus, it would be nice to fetch any changes from the remote repo when “Checkout source branch” is clicked and the branch already exists locally.

Similar issues: #79

atlascode verison: 2.3.1

vscode versions:

Version: 1.41.1
Commit: 26076a4de974ead31f97692a0d32f90d735645c0
Date: 2019-12-18T15:04:31.999Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Linux x64 5.4.8-200.fc31.x86_64

Comments (6)

  1. Gregory Star Account Deactivated

    This issue has been addressed in 2.3.2. Please open another issue if this problem persists.

  2. Log in to comment