IsValid() became IsValidDir()
This commit is contained in:
parent
232477808f
commit
e8de69e5a9
2
clone.go
2
clone.go
|
@ -22,7 +22,7 @@ func clone(gopath string) (*gitpb.Repo, error) {
|
||||||
// pb, _ := forge.NewGoPath(gopath)
|
// pb, _ := forge.NewGoPath(gopath)
|
||||||
check := forge.Repos.FindByGoPath(gopath)
|
check := forge.Repos.FindByGoPath(gopath)
|
||||||
if check != nil {
|
if check != nil {
|
||||||
if check.IsValid() {
|
if check.IsValidDir() {
|
||||||
// repo already exists and is valid
|
// repo already exists and is valid
|
||||||
return check, nil
|
return check, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue