GitRepo.vala
[gitlive] / GitRepo.vala
index 7985e81..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();
@@ -224,8 +230,12 @@ public class GitRepo : Object
                return false;
                }
                // check remote...
+       if (this.is_managed()) {
+               return true;
+               }
+       return false;
        
-       return FileUtils.test(this.gitdir + "/.gitlive-enable-auto-branch" , FileTest.EXISTS);
     }
     
     public void set_auto_branch(bool val)