mirror of
https://github.com/grdl/git-get.git
synced 2026-02-07 22:14:18 +00:00
Refactor repoFinder
- Remove io package and move finder to git package - Move tempDir and writeFile into test package. They are only used for testing purposes anyway. - Add a way to specify parent folder for tempDir. Useful for testing nested repos. - Add new test repos with .git/config files
This commit is contained in:
@@ -3,7 +3,6 @@ package pkg
|
||||
import (
|
||||
"fmt"
|
||||
"git-get/pkg/git"
|
||||
"git-get/pkg/io"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
@@ -69,7 +68,7 @@ func cloneDumpFile(c *GetCfg) error {
|
||||
}
|
||||
|
||||
// If target path already exists, skip cloning this repo
|
||||
if exists, _ := io.Exists(opts.Path); exists {
|
||||
if exists, _ := git.Exists(opts.Path); exists {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user