The "Allow LFS" checkbox is there in the repository details page for a particular repository, and I can check/uncheck the box after which I will be saving the setting.
Is there any event that is fired when the git-lfs option is enabled via the UI?
I ask mainly because if I would want to, say, cancel the event based on some business logic, will I be able to do so via a plugin that listens to a event that is fired when the checkbox is ticked or when the settings is saved?
We are running a bitbucket server running on version 6.6.2.
It's currently not possible to cancel when LFS has been enabled in the UI via a plugin. There is an event that is fired (GitLfsFeatureEnabledEvent), but it can't be cancelled and is also fired after LFS has been enabled. I'm also not sure if your plugin would be able to see the GitLfsFeatureEnabledEvent event as well since it's in an internal class.
If you'd like, you're welcome to raise a feature request for this over at https://jira.atlassian.com/secure/Dashboard.jspa I'd encourage you to clearly outline the use case so that our team can try to prioritize this and determine if it's something we will implement in the product.
Cheers,
Jeff
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.