diff --git a/repository/repository.go b/repository/repository.go index fe97200..35c680f 100644 --- a/repository/repository.go +++ b/repository/repository.go @@ -78,6 +78,13 @@ func RootPath(name string) (string, error) { return "", err } p := path.Join(BaseDir, name) + globPaths, err := filepath.Glob(p + "*") + if err != nil { + return "", err + } + if globPaths != nil { + p = globPaths[0] + } if err := validateRepoPath(p); err != nil { return "", err }