Issue Summary
In Bitbucket 7.7, a change was made to the soy file used in the repository file browser which resulted in the LFS lock icon not showing up next to files that have been locked in git lfs.
Steps to Reproduce
- Clone a LFS-enabled repository
- Lock a file with the command:
- git lfs lock filename.txt
Expected Results
The repository file browser indicates that the file is locked in git lfs:
Actual Results
The lock icon is not shown:
This is because the code is attempting to append the icon to the element with the class "item-name" for the locked file - but this class name no longer exists on the file browser's file rows following a change in Bitbucket 7.7.
Workaround
The lock icon is still present when viewing the source of the locked file - and a full listing of lfs locks for the repository can still be retrieved by visiting the following REST API endpoint:
- /rest/git-lfs/latest/projects/PROJECT/repos/REPO/locks
- mentioned in
-
Page Failed to load
Form Name |
---|