Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:49 Go to next message
gulam samdani is currently offline gulam samdaniFriend
Messages: 1
Registered: April 2022
Junior Member
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 09:47 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1214
Registered: July 2009
Senior Member
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 Dec 08 06:31:41 GMT 2022

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

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

Back to the top