git-tfs/git-tfs — Issue #135: Item has already been added
Author: jchadwick
Created: 2012-02-13 18:26:24+00:00
State: open

Getting the following error when attempting a pull or quick-export (and probably other actions, too... dunno!).

_Item has already been added. Key in dictionary: 'TMP' Key being added: 'tmp'_

This just started happening on a system where things had been working fine previously.

Here's the stack trace:

```
git command time: [00:00:00.0020002] config --list
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Item has already been added. Key in dictionary: 'TMP' Key being added: 'tmp'
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.Collections.Hashtable.Add(Object key, Object value)
at System.Collections.Specialized.StringDictionaryWithComparer.Add(String key, String value)
at System.Diagnostics.ProcessStartInfo.get_EnvironmentVariables()
at Sep.Git.Tfs.Core.GitRepository.SetUpPaths(ProcessStartInfo gitCommand) in D:\work\git-tfs\GitTfs\Core\GitRepository.cs:line 43
at Sep.Git.Tfs.Core.Ext.<>c__DisplayClass1`1.b__0(T x) in D:\work\git-tfs\GitTfs\Core\Ext.cs:line 22
at Sep.Git.Tfs.Core.GitHelpers.Start(String[] command, Action`1 initialize) in D:\work\git-tfs\GitTfs\Core\GitHelpers.cs:line 223
at Sep.Git.Tfs.Core.GitRepository.Start(String[] command, Action`1 initialize) in D:\work\git-tfs\GitTfs\Core\GitRepository.cs:line 37
at Sep.Git.Tfs.Core.GitHelpers.<>c__DisplayClass8.b__7() in D:\work\git-tfs\GitTfs\Core\GitHelpers.cs:line 57
at Sep.Git.Tfs.Core.GitHelpers.Time(String[] command, Action action) in D:\work\git-tfs\GitTfs\Core\GitHelpers.cs:line 183
at Sep.Git.Tfs.Core.GitHelpers.CommandOutputPipe(Action`1 handleOutput, String[] command) in D:\work\git-tfs\GitTfs\Core\GitHelpers.cs:line 54
at Sep.Git.Tfs.Core.GitRepository.ReadTfsRemotes() in D:\work\git-tfs\GitTfs\Core\GitRepository.cs:line 93
at Sep.Git.Tfs.Core.GitRepository.GetTfsRemotes() in D:\work\git-tfs\GitTfs\Core\GitRepository.cs:line 87
at Sep.Git.Tfs.Core.GitRepository.ReadTfsRemote(String remoteId) in D:\work\git-tfs\GitTfs\Core\GitRepository.cs:line 57
at Sep.Git.Tfs.Commands.Fetch.b__1(String arg) in D:\work\git-tfs\GitTfs\Commands\Fetch.cs:line 81
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at Sep.Git.Tfs.Commands.Fetch.Run(String[] args) in D:\work\git-tfs\GitTfs\Commands\Fetch.cs:line 54
at Sep.Git.Tfs.Commands.Pull.Run(String remoteId) in D:\work\git-tfs\GitTfs\Commands\Pull.cs:line 37
at Sep.Git.Tfs.Commands.Pull.Run() in D:\work\git-tfs\GitTfs\Commands\Pull.cs:line 32
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Sep.Git.Tfs.Util.GitTfsCommandRunner.Run(GitTfsCommand command, IList`1 args) in D:\work\git-tfs\GitTfs\Util\GitTfsCommandRunner.cs:line 36
at Sep.Git.Tfs.GitTfs.Main(GitTfsCommand command, IList`1 unparsedArgs) in D:\work\git-tfs\GitTfs\GitTfs.cs:line 56
at Sep.Git.Tfs.GitTfs.Run(IList`1 args) in D:\work\git-tfs\GitTfs\GitTfs.cs:line 39
at Sep.Git.Tfs.Program.Main(String[] args) in D:\work\git-tfs\GitTfs\Program.cs:line 24
```