GitBranch.vala
[gitlive] / GitBranch.vala
index 06578eb..4624f54 100644 (file)
@@ -123,7 +123,11 @@ public class GitBranch : Object
                }
                
                // find unused remotes.. and track them...
-               for(var rn in remotes_used.keys) {
+               foreach(var rn in remotes_used.keys) {
+                       if (this.remotes_used.get(rn)) {
+                               continue;
+                       }
+                       repo.git(  { "branch" ,"--track" , rn,  "origin/" + rn} ); 
                        
                }