From 8f44941f257124e983cfa00f81bd113bf096fde4 Mon Sep 17 00:00:00 2001 From: shy Date: Wed, 13 Mar 2024 13:42:57 +0800 Subject: [PATCH] opt some --- base/cli/runtime.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/base/cli/runtime.go b/base/cli/runtime.go index 1873da75..d32b0316 100644 --- a/base/cli/runtime.go +++ b/base/cli/runtime.go @@ -18,10 +18,6 @@ import ( ) func _runtime_init(m *ice.Message) { - if ice.Info.Make.Remote == "" { - ice.Info.Make.Remote = m.Cmdx(SYSTEM, GIT, "config", "--get", "remote.origin.url") - ice.Info.Make.Module = strings.Split(ice.Info.Make.Remote, "://")[1] - } count := kit.Int(m.Conf(RUNTIME, kit.Keys(BOOT, mdb.COUNT))) defer m.Conf(RUNTIME, kit.Keys(BOOT, mdb.COUNT), count+1) kit.For(kit.UnMarshal(kit.Format(ice.Info.Make)), func(k string, v ice.Any) { m.Conf(RUNTIME, kit.Keys(MAKE, strings.ToLower(k)), v) })