GitRepo.vala
[gitlive] / GitRepo.vala
index fb99d8f..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();
@@ -229,7 +235,7 @@ public class GitRepo : Object
                }
        return false;
        
-       return FileUtils.test(this.gitdir + "/.gitlive-enable-auto-branch" , FileTest.EXISTS);
     }
     
     public void set_auto_branch(bool val)