smithy

commit 63f747b979f103a864d4bb889be776e16aa70a74

Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>

Use Join() to handle missing dir separator

Without this, if you didn't added a / on your root it wouldn't fetch
repos correctly

 pkg/smithy/config.go | 5 ++++-


diff --git a/pkg/smithy/config.go b/pkg/smithy/config.go
index 06e84ac7e8d8491e95fbc2a4d0a64ec943a72b1e..6e2a6aa23f53823d9ca91f3d69370735652cc02c 100644
--- a/pkg/smithy/config.go
+++ b/pkg/smithy/config.go
@@ -19,6 +19,7 @@
 import (
 	"fmt"
 	"io/ioutil"
+	"path"
 	"path/filepath"
 	"sort"
 
@@ -108,7 +109,9 @@ 		if exists == true && repoObj.Exclude == true {
 			continue
 		}
 
-		r, err := git.PlainOpen(sc.Git.Root + repo.Name())
+		repoPath := path.Join(sc.Git.Root, repo.Name())
+
+		r, err := git.PlainOpen(repoPath)
 		if err != nil {
 			// Ignore directories that aren't git repositories
 			continue