From 598dfc61d9f21814b275dee8411daae74d10680f Mon Sep 17 00:00:00 2001 From: Alan Date: Mon, 29 May 2023 10:30:25 +0800 Subject: [PATCH] revert code that did not affect memory --- GitRepo.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GitRepo.vala b/GitRepo.vala index e3a72949..a4d1bfd3 100644 --- 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)); - //var r = this.repo.lookup_remote("origin"); + var r = this.repo.lookup_remote("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(); -- 2.39.2