1
0
mirror of https://shylinux.com/x/icebergs synced 2025-05-06 13:17:03 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2022-08-15 12:26:06 +08:00
parent 87e8036cfa
commit 056684387a

View File

@ -48,6 +48,9 @@ func _dream_list(m *ice.Message) *ice.Message {
}
func _dream_show(m *ice.Message, name string) {
if m.Warn(name == "") {
return
}
if !strings.Contains(name, "-") || !strings.HasPrefix(name, "20") {
name = m.Time("20060102-") + name
}
@ -123,7 +126,7 @@ func init() {
switch arg[0] {
case nfs.REPOS:
m.Cmd("web.code.git.server", func(value ice.Maps) {
m.Push(nfs.PATH, MergeLink(m, path.Join("/x/", value[nfs.PATH]+".git")))
m.Push(nfs.PATH, MergeLink(m, path.Join("/x/", path.Clean(value[nfs.PATH])+".git")))
})
m.Sort(nfs.PATH)
default: