Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Invalid ref advertisement line: '{1}'

On Fri, Jan 31, 2020 at 6:15 PM Anton Iakimov <yakimant@xxxxxxxxx> wrote:
Thank you, David!

Can you please help, how to debug our issue with git server, while waiting for the fix?
Any simple cli git command to check "ref advertisement that contains a malformed line".


If your server is responding with git protocol v2, and you're using jgit as a client, that is probably the reason.  The client code in jgit doesn't support protocol v2 yet as far as I know.

Otherwise you can check what the server is sending by doing the fetch operation with the regular git client and enabling the tracing with something like:

GIT_CURL_VERBOSE=1 GIT_TRACE=1 git fetch

 
Thanks in advance!

On Fri, 31 Jan 2020 at 02:48, David Pursehouse <david.pursehouse@xxxxxxxxx> wrote:
On Fri, Jan 31, 2020 at 12:59 AM Anton Iakimov <yakimant@xxxxxxxxx> wrote:
Hi David,

We have an issue with jgit on Teamcity connections to some (not all) git repos.

I found your patch here:
https://git.eclipse.org/c/jgit/jgit.git/commit/?id=f4fc6404baac5a6a5db34f71e62fb62fd8f1b8ef

Can you please tell, what can be wrong?

Sorry for contacting you by email, I couldn't find any other information about this issue, than you patch.


CC jgit-dev

This error occurs when the server is sending a ref advertisement that contains a malformed line.   The error message is supposed to include the line that was malformed, but I've just realised that the formatting of the externalized string (added in my patch linked above) is broken.  This should be fixed in https://git.eclipse.org/r/156918




--
With best wishes,
Anton Iakimov

+44 7957 018739


Back to the top