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.
- Clone a LFS-enabled repository
- Lock a file with the command:
- git lfs lock filename.txt
The repository file browser indicates that the file is locked in git lfs:
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.
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: