Skip to content

Commit

Permalink
Fix name in gitCreateDatabase()
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeguy committed Oct 15, 2023
1 parent 81b37c4 commit 2b473e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"os"
"os/exec"
"path/filepath"
"strings"

"github.com/beego/beego"
"xorm.io/xorm"
Expand Down Expand Up @@ -134,6 +135,7 @@ func gitWebBuild(path string) error {

func gitCreateDatabase(name string) (bool, error) {
fmt.Printf("gitCreateDatabase(): [%s]\n", name)
name = strings.Replace(name, "_00", "_", 1)

driverName := "mysql"
dataSourceName := fmt.Sprintf("root:%s@tcp(localhost:3306)/", beego.AppConfig.String("dbPass"))
Expand Down

0 comments on commit 2b473e4

Please sign in to comment.