Package com.google.gerrit.server.git
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.-
Field Summary
Fields inherited from interface org.eclipse.jgit.transport.AdvertiseRefsHook
DEFAULT
-
Constructor Summary
ConstructorsConstructorDescriptionUsersSelfAdvertiseRefsHook
(com.google.inject.Provider<CurrentUser> userProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
advertiseRefs
(org.eclipse.jgit.transport.ReceivePack receivePack) void
advertiseRefs
(org.eclipse.jgit.transport.UploadPack uploadPack)
-
Constructor Details
-
UsersSelfAdvertiseRefsHook
-
-
Method Details
-
advertiseRefs
public void advertiseRefs(org.eclipse.jgit.transport.UploadPack uploadPack) throws org.eclipse.jgit.transport.ServiceMayNotContinueException - Specified by:
advertiseRefs
in interfaceorg.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 interfaceorg.eclipse.jgit.transport.AdvertiseRefsHook
- Throws:
org.eclipse.jgit.transport.ServiceMayNotContinueException
-