installer: use main config when creating new env
diff --git a/core/installer/soft/client.go b/core/installer/soft/client.go
index 635ee0e..d23a2f7 100644
--- a/core/installer/soft/client.go
+++ b/core/installer/soft/client.go
@@ -94,7 +94,7 @@
}
func (ss *Client) GetRepo(name string) (*Repository, error) {
- return CloneRepo(RepositoryAddress{ss.Addr, name}, ss.Signer)
+ return CloneRepository(RepositoryAddress{ss.Addr, name}, ss.Signer)
}
type RepositoryAddress struct {
@@ -118,7 +118,7 @@
return fmt.Sprintf("ssh://%s/%s", r.Addr, r.Name)
}
-func CloneRepo(addr RepositoryAddress, signer ssh.Signer) (*Repository, error) {
+func CloneRepository(addr RepositoryAddress, signer ssh.Signer) (*Repository, error) {
c, err := git.Clone(memory.NewStorage(), memfs.New(), &git.CloneOptions{
URL: addr.FullAddress(),
Auth: &gitssh.PublicKeys{