projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
83e4dfa
)
revert code that did not affect memory
master
author
Alan
<alan@roojs.com>
Mon, 29 May 2023 02:30:25 +0000
(10:30 +0800)
committer
Alan
<alan@roojs.com>
Mon, 29 May 2023 02:30:25 +0000
(10:30 +0800)
GitRepo.vala
patch
|
blob
|
history
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
e3a7294
..
a4d1bfd
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();