GitRepo.vala
[gitlive] / GitRepo.vala
index f75b4df..7985e81 100644 (file)
@@ -178,7 +178,8 @@ public class GitRepo : Object
     
     public bool is_master_branch()
     {
-       return this.currentBranch.name == "master";
+       // special branches that do not allow autopushing now...
+       return this.currentBranch.name == "master" || this.currentBranch.name == "roojs";
                
     }
     
@@ -197,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)
@@ -219,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);
     }