GitBranch.vala
authorAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 07:43:26 +0000 (15:43 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 07:43:26 +0000 (15:43 +0800)
GitBranch.vala

index 00603d5..6e6da82 100644 (file)
@@ -67,9 +67,9 @@ public class GitBranch : Object
        
        //var branches =  new Gee.HashMap<string,GitBranch>();
                //var local =  new Gee.HashMap<string,GitBranch>();
-               var remotes  =  new Gee.HashMap<string,string>();
+               var remotes  =  new Gee.HashMap<string,Ggit.OId>();
                var remotes_used  =  new Gee.HashMap<string,bool>();
-               var remotes_oid  =  new Gee.HashMap<string,Ggit.OId>();
+                
   
                
                var rem = repo.repo.lookup_remote("origin");
@@ -81,9 +81,9 @@ public class GitBranch : Object
                        if (!rn.has_prefix("refs/heads/")) {
                                continue;
                        }
-                       remotes.set(rn.substring(11), rh.get_oid().to_string());
+                       remotes.set(rn.substring(11), rh.get_oid());
                        remotes_used.set(rn.substring(11), false);
-                       remotes_oid.set(rn.substring(11), rh.get_oid());
+
          }