projects
/
gitlive
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disable comment on get_upstream
[gitlive]
/
GitRepo.vala
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
fa5ce1a
..
e3a7294
100644
(file)
--- a/
GitRepo.vala
+++ b/
GitRepo.vala
@@
-218,12
+218,12
@@
public class GitRepo : Object
this.repo = Ggit.Repository.open(GLib.File.new_for_path(path));
this.repo = Ggit.Repository.open(GLib.File.new_for_path(path));
- var r = this.repo.lookup_remote("origin");
+
//
var r = this.repo.lookup_remote("origin");
//var r = this.git({ "remote" , "get-url" , "--push" , "origin"});
//var r = this.git({ "remote" , "get-url" , "--push" , "origin"});
- var uri = new Soup.URI(r.get_url());
- this.host = uri.get_host();
+ //var uri = new Soup.URI(r.get_url());
+
//
this.host = uri.get_host();
this.init_config();
this.loadBranches();
this.init_config();
this.loadBranches();
@@
-1014,6
+1014,7
@@
public class GitRepo : Object
var options = new Ggit.FetchOptions();
options.set_remote_callbacks( new GitCallbacks(this));
r.download(far, options);
var options = new Ggit.FetchOptions();
options.set_remote_callbacks( new GitCallbacks(this));
r.download(far, options);
+ r.disconnect();
}
this.loadStatus();
}
this.loadStatus();
@@
-1137,6
+1138,7
@@
public class GitRepo : Object
var cb = new GitCallbacks(this);
r.connect(Ggit.Direction.FETCH, cb, null, null);
this.remote_heads = r.list();
var cb = new GitCallbacks(this);
r.connect(Ggit.Direction.FETCH, cb, null, null);
this.remote_heads = r.list();
+ r.disconnect();
}
}