From 670c5b1466011b959b65384086c89bd4414a934e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Tue, 14 Jun 2022 20:55:32 +0800 Subject: [PATCH] fix --- git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git.go b/git.go index bd657d8..b24bb5d 100644 --- a/git.go +++ b/git.go @@ -65,7 +65,7 @@ func (g *git) SetUpstreamOrigin(origin string) *define.Result { // Date : 20:24 2022/6/14 func (g *git) Add(fileList ...string) *define.Result { if len(fileList) == 0 { - fileList = []string{"*"} + fileList = []string{"."} } param := []string{"add"} for _, item := range fileList {