From 2c9479bca6769ca731b99fd654bf93523ca01b64 Mon Sep 17 00:00:00 2001 From: shaoying Date: Wed, 12 Jun 2019 08:13:24 +0800 Subject: [PATCH] fix nfs.git.log err --- src/contexts/nfs/nfs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/contexts/nfs/nfs.go b/src/contexts/nfs/nfs.go index 84d922da..8caf0212 100644 --- a/src/contexts/nfs/nfs.go +++ b/src/contexts/nfs/nfs.go @@ -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 {