Class UsersSelfAdvertiseRefsHook

java.lang.Object
com.google.gerrit.server.git.UsersSelfAdvertiseRefsHook
All Implemented Interfaces:
org.eclipse.jgit.transport.AdvertiseRefsHook

public class UsersSelfAdvertiseRefsHook extends Object implements org.eclipse.jgit.transport.AdvertiseRefsHook
Advertises refs/users/self for authenticated users when interacting with the All-Users repository.
  • Constructor Details

    • UsersSelfAdvertiseRefsHook

      @Inject public UsersSelfAdvertiseRefsHook(com.google.inject.Provider<CurrentUser> userProvider)
  • Method Details

    • advertiseRefs

      public void advertiseRefs(org.eclipse.jgit.transport.UploadPack uploadPack) throws org.eclipse.jgit.transport.ServiceMayNotContinueException
      Specified by:
      advertiseRefs in interface org.eclipse.jgit.transport.AdvertiseRefsHook
      Throws:
      org.eclipse.jgit.transport.ServiceMayNotContinueException
    • advertiseRefs

      public void advertiseRefs(org.eclipse.jgit.transport.ReceivePack receivePack) throws org.eclipse.jgit.transport.ServiceMayNotContinueException
      Specified by:
      advertiseRefs in interface org.eclipse.jgit.transport.AdvertiseRefsHook
      Throws:
      org.eclipse.jgit.transport.ServiceMayNotContinueException