-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Component/s: Repository - Source
-
None
-
1
-
Severity 3 - Minor
-
4
Issue Summary
When viewing a file in source view, if a branch is not loaded, meaning you are viewing it on the commit, then clicking "Checkout" generates a "Something went wrong error".
This is because, it's expecting a branch to be loaded but if you are viewing from the commit and no branch is loaded, then it generates this error as it can't find a branch to add to this checkout command.
Steps to Reproduce
- Click on commits tab on your repository
- Open any of the older commits and click "view file" on one of the files
- At this point you are viewing the file from the commit but it's not referenced to any branch.
- Click checkout on the top left
Expected Results
Clicking checkout shows a pop up with the git checkout commands
Actual Results
Clicking checkout shows an error "Something went wrong".
Workaround
To workaround this, you can select a branch from the branch drop down (which has this file) on the branch. Then only click checkout.
Alternatively, before clicking checkout, add a branch which contains this file to the URL :
https://bitbucket.org/<workspaceid>/<repo>/src/<commit>/<file>?at=master