1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00

fix nfs.git.log err

This commit is contained in:
shaoying 2019-06-12 08:13:24 +08:00
parent 409207248c
commit 2c9479bca6

View File

@ -1237,7 +1237,7 @@ var Index = &ctx.Context{Name: "nfs", Help: "存储中心",
return
}
if p := m.Cmdx("nfs.path", arg[0]); p != "" {
if p := m.Cmdx("nfs.path", arg[0]); p != "" && !m.Confs("git", arg[0]) {
m.Option("git_dir", p)
arg = arg[1:]
} else {
@ -1245,6 +1245,7 @@ var Index = &ctx.Context{Name: "nfs", Help: "存储中心",
m.Assert(e)
m.Option("git_dir", wd)
}
m.Log("fuck", "what %v", arg[0])
cmds := []string{}
if v := m.Confv("git", []string{arg[0], "cmds"}); v != nil {