GitRepo.vala
authorAlan Knowles <alan@roojs.com>
Fri, 14 Dec 2018 04:05:33 +0000 (12:05 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 14 Dec 2018 04:05:33 +0000 (12:05 +0800)
GitRepo.vala

index 704bae0..813d891 100644 (file)
@@ -186,6 +186,10 @@ public class GitRepo : Object
     {
        // 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.
+       
+       }
        
        
        return FileUtils.test(this.gitdir + "/.gitlive-managed" , FileTest.EXISTS);