Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] Re: [git#] Cloning error

>Not reproducible in JGit commit 046198cf5f21e5a63e8ec0ecde2ef3fe21db2eae.
My bad. The issue *is* reproducible in JGit. I've successfully
reproduced it on both JGit commits
046198cf5f21e5a63e8ec0ecde2ef3fe21db2eae and
d4840c84de8314c2eacdf14a96f6ed64f4d1484f.

When cloning from git://github.com/flyrev/Smeedee_git_plugin.git,
NullPointerException occurs in GitIndex.Entry() constructor. Further
info can be found at
http://code.google.com/p/gitsharp/issues/detail?id=56.

@Christian,
Nice catch ;-)

Em.



On Sun, Mar 7, 2010 at 8:53 AM, Emeric Fermas <emeric.fermas@xxxxxxxxx> wrote:
> Weird behavior confirmed.
>
> Offending Object Id is de6db920265171a43ff1af711e36726f2e24c376.
> Not reproducible in JGit commit 046198cf5f21e5a63e8ec0ecde2ef3fe21db2eae.
>
> This will require parallel debugging to troubleshoot this. Please
> raise an issue in our bug tracking system
> (http://code.google.com/p/gitsharp/issues/list).
>
> Em.
>
>
>
> On Sun, Mar 7, 2010 at 2:41 AM, Christian Jonassen <flyrev@xxxxxxxxx> wrote:
>> Hi
>>
>> I just pulled the newest GitSharp:
>> http://github.com/henon/GitSharp/commit/de6db920265171a43ff1af711e36726f2e24c376
>> Now I attempt to run the following:
>>    [TestFixture]
>>    public class GitSharpLearningTests
>>    {
>>        protected static string _repositoryUrl =
>> "git://github.com/flyrev/Smeedee_git_plugin.git";
>>        protected static string _localDirectory =
>> "L:\\Smeedee_git_plugin_cloned";
>>
>>        [Test]
>>        public void how_to_clone_a_remote_repository()
>>        {
>>            GitSharp.Git.Clone(_repositoryUrl, _localDirectory);
>>        }
>>
>>    }
>>
>> Since the repository contains a lot of files, this takes a while, and
>> then I get the following:
>> System.NullReferenceException: Object reference not set to an instance
>> of an object.
>> at GitSharp.Core.GitIndex.Entry..ctor(Repository repository, TreeEntry
>> f, Int32 stage) in GitIndex.cs: line 763
>> at GitSharp.Core.GitIndex.addEntry(TreeEntry te) in GitIndex.cs: line 474
>> at GitSharp.Core.WorkDirCheckout.<CheckoutOutIndexNoHead>b__1(TreeEntry
>> m, Entry i, FileInfo f) in WorkDirCheckout.cs: line 215
>> at GitSharp.Core.AbstractIndexTreeVisitor.GitSharp.Core.IndexTreeVisitor.VisitEntry(TreeEntry
>> treeEntry, Entry indexEntry, FileInfo file) in
>> AbstractIndexTreeVisitor.cs: line 66
>> at GitSharp.Core.IndexTreeWalker.FinishVisitTree(TreeEntry t1,
>> TreeEntry t2, Int32 curIndexPos) in IndexTreeWalker.cs: line 174
>> at GitSharp.Core.IndexTreeWalker.Walk(Tree tree, Tree auxTree) in
>> IndexTreeWalker.cs: line 259
>> at GitSharp.Core.IndexTreeWalker.Walk() in IndexTreeWalker.cs: line 233
>> at GitSharp.Core.WorkDirCheckout.CheckoutOutIndexNoHead() in
>> WorkDirCheckout.cs: line 221
>> at GitSharp.Core.WorkDirCheckout.checkout() in WorkDirCheckout.cs: line 162
>> at GitSharp.Commands.CloneCommand.doCheckout(Ref branch) in
>> CloneCommand.cs: line 293
>> at GitSharp.Commands.CloneCommand.Execute() in CloneCommand.cs: line 214
>> at GitSharp.Git.Clone(CloneCommand command) in Git.cs: line 168
>> at GitSharp.Git.Clone(String fromUrl, String toPath, Boolean bare) in
>> Git.cs: line 163
>> at GitSharp.Git.Clone(String fromUrl, String toPath) in Git.cs: line 145
>> at APD.IntegrationTests.VCS.Git.GitSharpLearningTests.how_to_clone_a_remote_repository()
>> in GitSharpLearningTests.cs: line 55
>>
>> What's wrong?
>>
>> C
>>
>> --
>> For infos about GitSharp visit http://www.eqqon.com/index.php/GitSharp
>> To join this group visit http://groups.google.com/group/gitsharp
>

Attachment: Error.cloning.png
Description: PNG image


Back to the top