GitRepo.vala
[gitlive] / GitRepo.vala
index f0cf4e6..35df2bb 100644 (file)
@@ -220,7 +220,16 @@ public class GitRepo : Object
     
     public bool is_auto_branch ()
     {
-       return FileUtils.test(this.gitdir + "/.gitlive-enable-auto-branch" , FileTest.EXISTS);
+       if (this.name == "gitlog") {
+               return false;
+               }
+               // check remote...
+       if (this.is_managed()) {
+               return true;
+               }
+       return false;
+       
     }
     
     public void set_auto_branch(bool val)