This commit is contained in:
白茶清欢 2022-06-14 20:55:32 +08:00
parent 53f7f3a859
commit 670c5b1466

2
git.go
View File

@ -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 {