<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -682,18 +682,18 @@ namespace GitUI
 
         public static bool SolveGitCmdDir()
         {
+            GitCommands.Settings.GitDir = GetRegistryValue(Registry.LocalMachine, &quot;SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Git_is1&quot;, &quot;InstallLocation&quot;) + &quot;\\cmd\\&quot;;
             if (string.IsNullOrEmpty(GitCommands.GitCommands.RunCmd(GitCommands.Settings.GitDir + &quot;git.cmd&quot;, &quot;&quot;)))
             {
-                GitCommands.Settings.GitDir = GetRegistryValue(Registry.LocalMachine, &quot;SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Git_is1&quot;, &quot;InstallLocation&quot;) + &quot;\\cmd\\&quot;;
+                GitCommands.Settings.GitDir = @&quot;c:\Program Files (x86)\Git\cmd\&quot;;
                 if (string.IsNullOrEmpty(GitCommands.GitCommands.RunCmd(GitCommands.Settings.GitDir + &quot;git.cmd&quot;, &quot;&quot;)))
                 {
-                    GitCommands.Settings.GitDir = @&quot;c:\Program Files (x86)\Git\cmd\&quot;;
+                    GitCommands.Settings.GitDir = @&quot;c:\Program Files\Git\cmd\&quot;;
                     if (string.IsNullOrEmpty(GitCommands.GitCommands.RunCmd(GitCommands.Settings.GitDir + &quot;git.cmd&quot;, &quot;&quot;)))
                     {
-                        GitCommands.Settings.GitDir = @&quot;c:\Program Files\Git\cmd\&quot;;
+                        GitCommands.Settings.GitDir = &quot;&quot;;
                         if (string.IsNullOrEmpty(GitCommands.GitCommands.RunCmd(GitCommands.Settings.GitDir + &quot;git.cmd&quot;, &quot;&quot;)))
                         {
-                            GitCommands.Settings.GitDir = &quot;&quot;;
                             return false;
                         }
                     }
@@ -792,22 +792,22 @@ namespace GitUI
 
         public static bool SolveGitBinDir()
         {
+            GitCommands.Settings.GitBinDir = @&quot;c:\Program Files\Git\bin\&quot;;
             if (string.IsNullOrEmpty(GitCommands.GitCommands.RunCmd(GitCommands.Settings.GitBinDir + &quot;git.exe&quot;, &quot;&quot;)))
             {
-                GitCommands.Settings.GitBinDir = @&quot;c:\Program Files\Git\bin\&quot;;
+                GitCommands.Settings.GitBinDir = @&quot;c:\Program Files (x86)\Git\bin\&quot;;
                 if (string.IsNullOrEmpty(GitCommands.GitCommands.RunCmd(GitCommands.Settings.GitBinDir + &quot;git.exe&quot;, &quot;&quot;)))
                 {
-                    GitCommands.Settings.GitBinDir = @&quot;c:\Program Files (x86)\Git\bin\&quot;;
+                    GitCommands.Settings.GitBinDir = GitCommands.Settings.GitDir;
+                    GitCommands.Settings.GitBinDir = GitCommands.Settings.GitBinDir.Replace(&quot;\\cmd\\&quot;, &quot;\\bin\\&quot;);
                     if (string.IsNullOrEmpty(GitCommands.GitCommands.RunCmd(GitCommands.Settings.GitBinDir + &quot;git.exe&quot;, &quot;&quot;)))
                     {
-                        GitCommands.Settings.GitBinDir = GitCommands.Settings.GitDir;
-                        GitCommands.Settings.GitBinDir = GitCommands.Settings.GitBinDir.Replace(&quot;\\cmd\\&quot;, &quot;\\bin\\&quot;);
+                        GitCommands.Settings.GitBinDir = GetRegistryValue(Registry.LocalMachine, &quot;SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Git_is1&quot;, &quot;InstallLocation&quot;) + &quot;\\bin\\&quot;;
                         if (string.IsNullOrEmpty(GitCommands.GitCommands.RunCmd(GitCommands.Settings.GitBinDir + &quot;git.exe&quot;, &quot;&quot;)))
                         {
-                            GitCommands.Settings.GitBinDir = GetRegistryValue(Registry.LocalMachine, &quot;SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Git_is1&quot;, &quot;InstallLocation&quot;) + &quot;\\bin\\&quot;;
-                            if (string.IsNullOrEmpty(GitCommands.GitCommands.RunCmd(GitCommands.Settings.GitBinDir + &quot;git.exe&quot;, &quot;&quot;)))
+                            GitCommands.Settings.GitBinDir = &quot;&quot;;
+                            if (string.IsNullOrEmpty(GitCommands.GitCommands.RunCmd(GitCommands.Settings.GitDir + &quot;git.exe&quot;, &quot;&quot;)))
                             {
-                                GitCommands.Settings.GitBinDir = &quot;&quot;;
                                 return false;
                             }
                         }</diff>
      <filename>GitUI/FormSettings.cs</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cf8f6aecd807b370b7e444a1e86133e659c14c19</id>
    </parent>
  </parents>
  <author>
    <name>Henk Westhuis</name>
    <email>Henk_Westhuis@hotmail.com</email>
  </author>
  <url>http://github.com/spdr870/gitextensions/commit/7851f2fbca3c244220c05dba518e94754944cce3</url>
  <id>7851f2fbca3c244220c05dba518e94754944cce3</id>
  <committed-date>2009-11-04T10:18:34-08:00</committed-date>
  <authored-date>2009-11-04T10:18:34-08:00</authored-date>
  <message>Minor change in auto resolve git dir  functions.</message>
  <tree>3d1d548f505cbcaf90f8d9f68d0b290bdaf549e2</tree>
  <committer>
    <name>Henk Westhuis</name>
    <email>Henk_Westhuis@hotmail.com</email>
  </committer>
</commit>
