github.com/caos/orbos@v1.5.14-0.20221103111702-e6cd0cea7ad4/cmd/orbctl/repo.go (about) 1 package main 2 3 import ( 4 "github.com/caos/orbos/pkg/git" 5 "github.com/caos/orbos/pkg/orb" 6 ) 7 8 func initRepo(orbConfig *orb.Orb, gitClient *git.Client) error { 9 if err := orbConfig.IsConnectable(); err != nil { 10 return err 11 } 12 13 if err := gitClient.Configure(orbConfig.URL, []byte(orbConfig.Repokey)); err != nil { 14 return err 15 } 16 17 return gitClient.Clone() 18 }