GitRepo.vala
authorAlan Knowles <alan@roojs.com>
Wed, 19 Dec 2018 03:54:32 +0000 (11:54 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 19 Dec 2018 03:54:32 +0000 (11:54 +0800)
GitRepo.vala

index c037454..d0bbe5d 100644 (file)
@@ -257,16 +257,14 @@ public class GitRepo : Object
                return;
 
        }
-       // otherwise see if unmanaged is set to disable it..
-       return !FileUtils.test(this.gitdir + "/.gitlive-unmanaged" , FileTest.EXISTS);  
-               
-               
-               if (val) {
-                       FileUtils.set_contents(this.gitdir + "/.gitlive-enable-auto-branch" , "x");
+       
+       if (val) {
+                       FileUtils.remove(this.gitdir + "/.gitlive-unmanaged" ); 
                } else {
-                       // it exists...
-                       FileUtils.remove(this.gitdir + "/.gitlive-enable-auto-branch" ); 
+               FileUtils.set_contents(this.gitdir + "/.gitlive-unmanaged" , "x");              
+
                }
+         
     
     }
     public bool is_autopush ()