Skip to content

Commit

Permalink
added some more documentation with reference to git documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonEntholzer committed Oct 15, 2024
1 parent f85fd21 commit 82d1f30
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ public ArtemisGitServletService(LocalVCServletService localVCServletService) {

/**
* Initialize the ArtemisGitServlet by setting the repository resolver and adding filters for fetch and push requests.
* Sets the pre/post receive/upload hooks.
* <p>
* For general information on the different hooks and git packs see the git documentation:
* <p>
* <a href="https://git-scm.com/docs/git-receive-pack">https://git-scm.com/docs/git-receive-pack</a>
* <p>
* <a href="https://git-scm.com/docs/git-upload-pack">https://git-scm.com/docs/git-upload-pack</a>
*/
@PostConstruct
@Override
Expand Down Expand Up @@ -60,7 +67,7 @@ public void init() {
this.setUploadPackFactory((request, repository) -> {
UploadPack uploadPack = new UploadPack(repository);

// Add the custom pre-upload hook
// Add the custom pre-upload hook, to distinguish between clone and pull operations
uploadPack.setPreUploadHook(new LocalVCFetchPreUploadHook(localVCServletService, request));
return uploadPack;
});
Expand Down

0 comments on commit 82d1f30

Please sign in to comment.