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

index 35df2bb..f4a12d1 100644 (file)
@@ -171,6 +171,12 @@ public class GitRepo : Object
                if ( !cache.has_key(path) ) {
                        cache.set( path, this);
        }
+       
+       var r = this.git({ "remote" , "get-url" , "--push" , "origin"});
+       var uri = new Soup.URI(r);      
+       this.host = uri.get_host();
+
+       
        this.loadBranches();
        this.loadActiveTicket();
        this.loadStatus();