remove all items from lfs blob store, if the corresponding repository was removed

This commit is contained in:
Sebastian Sdorra
2017-06-01 17:28:59 +02:00
parent 2a8cfc00d8
commit 1effc9c29b
8 changed files with 389 additions and 58 deletions

View File

@@ -40,6 +40,8 @@ import com.google.inject.servlet.ServletModule;
import org.eclipse.jgit.transport.ScmTransportProtocol;
import sonia.scm.plugin.ext.Extension;
import sonia.scm.web.lfs.LfsBlobStoreFactory;
import sonia.scm.web.lfs.LfsStoreRemoveListener;
/**
*
@@ -68,6 +70,9 @@ public class GitServletModule extends ServletModule
bind(GitRepositoryResolver.class);
bind(GitReceivePackFactory.class);
bind(ScmTransportProtocol.class);
bind(LfsBlobStoreFactory.class);
bind(LfsStoreRemoveListener.class);
// serlvelts and filters
filter(PATTERN_GIT).through(GitBasicAuthenticationFilter.class);