1
0
mirror of https://github.com/beego/bee.git synced 2025-06-12 04:50:40 +00:00

beego pro add mysql source type

This commit is contained in:
yitea
2020-07-05 14:54:26 +08:00
parent 8758f6eaa1
commit 9db1e8fb4c
13 changed files with 452 additions and 132 deletions

View File

@ -12,7 +12,7 @@ import (
"strings"
)
// 获取某项目代码库的标签列表
// git tag
func GetTags(repoPath string, limit int) ([]string, error) {
repo, err := OpenRepository(repoPath)
if err != nil {
@ -57,13 +57,6 @@ func CloneORPullRepo(url string, dst string) error {
if !utils.IsDir(dst) {
return CloneRepo(url, dst)
} else {
//projectName, err := getGitProjectName(url)
//if err != nil {
// return err
//}
//fmt.Println("dst------>", dst)
//projectDir := dst + "/" + projectName
utils.Mkdir(dst)
repo, err := OpenRepository(dst)