summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clone.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/clone.go b/clone.go
index e0ee77e..d821f63 100644
--- a/clone.go
+++ b/clone.go
@@ -22,7 +22,7 @@ func clone(gopath string) (*gitpb.Repo, error) {
// pb, _ := forge.NewGoPath(gopath)
check := forge.Repos.FindByGoPath(gopath)
if check != nil {
- if check.IsValid() {
+ if check.IsValidDir() {
// repo already exists and is valid
return check, nil
}