GitRepo.vala
[gitlive] / GitRepo.vala
index 64f1bcf..7985e81 100644 (file)
@@ -198,7 +198,7 @@ public class GitRepo : Object
     
     
     public bool is_autocommit ()
-    {
+    {          
        return !FileUtils.test(this.gitdir + "/.gitlive-disable-autocommit" , FileTest.EXISTS);
     }
     public void set_autocommit(bool val)
@@ -220,6 +220,11 @@ public class GitRepo : Object
     
     public bool is_auto_branch ()
     {
+       if (this.name == "gitlog") {
+               return false;
+               }
+               // check remote...
+       
        return FileUtils.test(this.gitdir + "/.gitlive-enable-auto-branch" , FileTest.EXISTS);
     }