bergerjac / gitextensions

This fork of GitExtensions is primarily focused on creating an interactive view of git's common objects.
http://code.google.com/p/gitextensions
GNU General Public License v3.0
1 stars 0 forks source link

KeyNotFoundException #24

Closed jbialobr closed 11 years ago

jbialobr commented 11 years ago

System.Collections.Generic.KeyNotFoundException was unhandled by user code Message=Dany klucz nie był obecny w słowniku. Source=mscorlib StackTrace: w System.Collections.Generic.Dictionary2.get_Item(TKey key) w GitCommands.Git.RemoteInfo..ctor(String remoteShowOutput) w D:\projekty\gitextensions\GitCommands\Git\RemoteInfo.cs:wiersz 189 w GitCommands.GitModule.<GetRemotesInfo>b__2a(String remote) w D:\projekty\gitextensions\GitCommands\Git\GitModule.cs:wiersz 2106 w System.Linq.Enumerable.<>c__DisplayClass123.b11(TSource x) w System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() w System.Collections.Generic.List1..ctor(IEnumerable1 collection) w System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) w GitUI.UserControls.RepoObjectsTree.be() w D:\projekty\gitextensions\GitUI\RepoObjectsTree\RepoObjectsTree.cs:wiersz 75 w GitUI.UserControls.ValueWatcher1.<CheckUpdateAsync>b__4() w D:\projekty\gitextensions\GitUI\RepoObjectsTree\ValueWatcher.cs:wiersz 55 w System.Threading.Tasks.Task1.InvokeFuture(Object futureAsObj) w System.Threading.Tasks.Task.InnerInvoke() w System.Threading.Tasks.Task.Execute() InnerException:

bergerjac commented 11 years ago

If you can reproduce this consistently, can you put a breakpoint at: GitCommands\Git\RemoteInfo.cs, line 188 Right-click on the breakpoint icon, [Condition...] !NameToBranch.ContainsKey(remoteBranch)

GitEx RemoteInfo BreakpointCondition

Then, if you can fix it, that'd be fantastic; otherwise, please comment with the offending values.

jbialobr commented 11 years ago

I send you debug data via email.

bergerjac commented 11 years ago

@jbialobr can you check this and either respond on stackoverflow (if you have an account) or this one?

bergerjac commented 11 years ago

@jbialobr can you also post the lines for [remote "origin"]. Also, you may want to delete the answer you posted on the other site. (Answers are reserved for solving the question/problem.)

jbialobr commented 11 years ago
[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*

Also, you may want to delete the answer you posted on the other site. (Answers are reserved for solving the question/problem.)

Where do I have to click to add a comment to question?

bergerjac commented 11 years ago

Right below Pascal's comment there's an Add Comment link that expands to a textbox where you can place a comment.

jbialobr commented 11 years ago

I can't see it:

tmp

bergerjac commented 11 years ago

Apparently, you have to have 50 reputation points before being able to comment. I'll post an edit to the question.

On the remote repository, is the branch named origin/DowSzkDoZgl or just DowSzkDoZgl?

jbialobr commented 11 years ago

origin/DowSzkDoZgl

bergerjac commented 11 years ago

Is the issue no longer taking place?

Also, what does it show when you perform: git ls-remote --heads origin?

jbialobr commented 11 years ago
$ git ls-remote --heads origin | grep DowSzkDoZgl
aceb95fa2cf80bfec65272acf0898a2a47d8fac9        refs/heads/DowSzkDoZgl
aceb95fa2cf80bfec65272acf0898a2a47d8fac9        refs/heads/origin/DowSzkDoZgl

Yes, this issue is fixed, I closed it.

bergerjac commented 11 years ago

Are you sure it was fixed in code? Or did you fix it by something you did to your repo?

jbialobr commented 11 years ago

Yes, it was fixed by e16c10b7f9fb810441038a5f291caa392c58f171