GitRepo.vala
[gitlive] / GitRepo.vala
index 36dca8a..e0d87f9 100644 (file)
@@ -210,15 +210,7 @@ public class GitRepo : Object
     
     public bool is_managed()
     {
-       // is it a roojs origin?
-        
-       if (this.host != "git.roojs.com") { // we can only push to this url. -- unless we have forced it to be managed.
-               var r = this.git({ "config" , "gitlive.managed");
-               
-               return FileUtils.test(this.gitdir + "/.gitlive-managed" , FileTest.EXISTS);
-       }
-       // otherwise see if unmanaged is set to disable it..
-       return !FileUtils.test(this.gitdir + "/.gitlive-unmanaged" , FileTest.EXISTS);  
+       return this.get_config("managed") == "1";
 
     }