Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » How can send custom error message after git push from local git server by using jgit api
How can send custom error message after git push from local git server by using jgit api [message #1851794] Fri, 15 April 2022 15:49 Go to next message
Eclipse UserFriend
I have been making a local git server by using jgit . Following is my code repository for local git server.

https://github.com/masumcse1/mygitserver

https://github.com/masumcse1/mygitserver/blob/main/src/main/java/org/meveo/api/git/MeveoGitServlet.java

git clone http://localhost:9090/mygitserver/git/customer

This program is working for all type basic git command (clone , push , pull). Now i want to send custom error from this servlet after pushing wrong file (other than .java file) from any user .

User will receive this error message from his git client . any one please explain how can i send this error for git client after push any thing wrong file type.
Re: How can send custom error message after git push from local git server by using jgit api [message #1852064 is a reply to message #1851794] Thu, 28 April 2022 05:47 Go to previous message
Eclipse UserFriend
org.eclipse.jgit.transport.ReceivePack has the following methods:


  • sendMessage
  • sendError


to send a message or error message to the client.
Previous Topic:Performance issue to a shared network drive from Windows.
Next Topic:Setting Transfer Protocol Via Code
Goto Forum:
  


Current Time: Thu May 15 16:43:11 EDT 2025

Powered by FUDForum. Page generated in 0.05186 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top