From: Mark Struberg <struberg@yahoo.de>
To: Shawn Spearce <spearce@spearce.org>, robin.rosenberg@dewire.com
Cc: git@vger.kernel.org
Subject: [JGIT] potential incompatibility with old git repos.
Date: Tue, 1 Sep 2009 21:07:56 +0000 (GMT) [thread overview]
Message-ID: <723287.10285.qm@web27802.mail.ukl.yahoo.com> (raw)
Hi Shawn, Robin!
I'm happy to spend some time on the maven-scm-providers-jgit again, but spotted a problem with running the latest version of JGIT on my test repository [1]. This test repo has been created a good while ago (~nov 2007) with git 1.3.54 or so and has been edited on various computers.
It works with native git but crashes with both SimpleRepository#clone [2] and jgit.
jgit fails with "cannot checkout; no HEAD advertised by remote"
in guessHEAD
JGIT used to work on this repo until a few weeks. I tracked it down with git bisect and found commit
72b1f0d334729a49cc52e4762093148be62bea39
to be the bad one.
I glimpsed at the code and it appears that the new code in RefDatabase#readLine is not Windows CR+LF aware. (This hits me although I use Linux because our SVN at apache.org seems to have it stored with CR+LF.)
Patch will follow.
txs and LieGrue,
strub
[1] http://github.com/struberg/maven-scm-providers-git/tree/a66e9470ea087030bb8bd40edb2cab22a2de0e6a/maven-scm-provider-gittest/src/main/resources/repository/test-repo
[2] http://github.com/sonatype/JGit/tree/struberg
reply other threads:[~2009-09-01 21:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=723287.10285.qm@web27802.mail.ukl.yahoo.com \
--to=struberg@yahoo.de \
--cc=git@vger.kernel.org \
--cc=robin.rosenberg@dewire.com \
--cc=spearce@spearce.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox