From 7def4f0f3f6347c10c76a1b1dc494b2fcc8a1ce6 Mon Sep 17 00:00:00 2001 From: shylinux Date: Sun, 19 Feb 2023 19:38:18 +0800 Subject: [PATCH] opt some --- misc/git/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/git/server.go b/misc/git/server.go index dc323f98..517bc28f 100644 --- a/misc/git/server.go +++ b/misc/git/server.go @@ -173,6 +173,7 @@ func init() { }}, }, gdb.EventAction(web.DREAM_INPUTS)), Hand: func(m *ice.Message, arg ...string) { if m.Option(nfs.DIR_ROOT, ice.USR_LOCAL_REPOS); len(arg) == 0 { + m.Option(nfs.DIR_TYPE, nfs.TYPE_DIR) m.Cmdy(nfs.DIR, nfs.PWD, func(value ice.Maps) { m.PushScript("git clone " + _git_url(m, value[nfs.PATH])) }).Cut("time,path,size,script,action").RenameAppend("path", "repos") } else if dir := path.Join(m.Option(nfs.DIR_ROOT), arg[0]); len(arg) == 1 { _repos_branch(m, dir)