hbons/SparkleShare — Issue #380: Crash with Unhandled Exception: System.Exception:  ---> GitSharp.Core.Exceptions.MissingObjectException: Missing Tree
Author: kepi
Created: 2011-10-25 16:57:17+00:00
State: open

After renaming some folders and create new text files SparkleShare is crashing with:

```
From ssh://ando.igloonet/vedeni
* branch master -> FETCH_HEAD
[18:53:45][Cmd] /usr/bin/git status --porcelain
[18:53:45][Git][repo] Changes fetched.
[18:53:45][Git][repo] Staging changes...
[18:53:45][Cmd] /usr/bin/git add --all
[18:53:45][Git][repo] Changes staged.
[18:53:45][Irc][mydata] Connected. Now listening... (204.62.14.135)

Unhandled Exception: System.Exception: ---> GitSharp.Core.Exceptions.MissingObjectException: Missing Tree AnyObjectId[d5af3045b90cfbc188e7cada5b563b099fde293a]
at GitSharp.Core.Tree.EnsureLoaded () [0x00000] in :0
at GitSharp.Core.Tree.get_MemberCount () [0x00000] in :0
at GitSharp.Core.TreeIterator.Step () [0x00000] in :0
at GitSharp.Core.TreeIterator..ctor (GitSharp.Core.Tree start, Order order, Boolean visitTreeNode) [0x00000] in :0
--- End of inner exception stack trace ---
at GitSharp.Core.TreeIterator..ctor (GitSharp.Core.Tree start, Order order, Boolean visitTreeNode) [0x00000] in :0
at GitSharp.Core.TreeIterator.Step () [0x00000] in :0
at GitSharp.Core.TreeIterator.Step () [0x00000] in :0
at GitSharp.Core.TreeIterator.Step () [0x00000] in :0
at GitSharp.Core.TreeIterator.Step () [0x00000] in :0
at GitSharp.Core.TreeIterator.Step () [0x00000] in :0
at GitSharp.Core.TreeIterator.next () [0x00000] in :0
at GitSharp.Core.IndexTreeWalker.Walk (GitSharp.Core.Tree tree, GitSharp.Core.Tree auxTree) [0x00000] in :0
at GitSharp.Core.IndexTreeWalker.Walk () [0x00000] in :0
at GitSharp.RepositoryStatus.UpdateDirectoryRecursive (System.String path) [0x00000] in :0
at GitSharp.RepositoryStatus.Update () [0x00000] in :0
at GitSharp.RepositoryStatus..ctor (GitSharp.Repository repository, GitSharp.RepositoryStatusOptions options, System.String singleFile, System.String rootDir, Boolean recursive) [0x00000] in :0
at GitSharp.Repository.get_Status () [0x00000] in :0
at GitSharp.Index.get_Status () [0x00000] in :0
at SparkleLib.SparkleRepo.FormatCommitMessage () [0x00000] in :0
at SparkleLib.SparkleRepo.AddCommitAndPush () [0x00000] in :0
at SparkleLib.SparkleRepo..ctor (System.String path) [0x00000] in :0
at SparkleShare.SparkleController.AddRepository (System.String folder_path) [0x00000] in :0
at SparkleShare.SparkleController.PopulateRepositories () [0x00000] in :0
```