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

index 5fbdb0d..4ce43e5 100644 (file)
@@ -193,9 +193,8 @@ public class GitRepo : Object
     public bool is_managed()
     {
        // is it a roojs origin?
-       var r = this.git({ "remote" , "get-url" , "--push" , "origin"});
-       var uri = new Soup.URI(r);
-       if (uri.get_host() != "git.roojs.com") { // we can only push to this url. -- unless we have forced it to be managed.
+        
+       if (this.host != "git.roojs.com") { // we can only push to this url. -- unless we have forced it to be managed.
                return FileUtils.test(this.gitdir + "/.gitlive-managed" , FileTest.EXISTS);
        }
        // otherwise see if unmanaged is set to disable it..