mirror of
https://github.com/cooperspencer/gickup.git
synced 2026-10-21 10:33:14 +00:00
should fix #112
This commit is contained in:
+9
-1
@@ -82,8 +82,16 @@ func Locally(repo types.Repo, l types.Local, dry bool) {
|
||||
|
||||
err := cloneRepository(repo, auth, dry)
|
||||
if err != nil {
|
||||
if err.Error() == "repository not found" {
|
||||
log.Warn().
|
||||
Str("stage", "locally").
|
||||
Str("path", l.Path).
|
||||
Str("repo", repo.Name).
|
||||
Msg(err.Error())
|
||||
break
|
||||
}
|
||||
if x == tries {
|
||||
log.Fatal().
|
||||
log.Warn().
|
||||
Str("stage", "locally").
|
||||
Str("path", l.Path).
|
||||
Str("repo", repo.Name).
|
||||
|
||||
@@ -17,10 +17,10 @@ import (
|
||||
// Get TODO.
|
||||
func Get(conf *types.Conf) []types.Repo {
|
||||
repos := []types.Repo{}
|
||||
log.Info().
|
||||
Str("stage", "whatever").
|
||||
Msgf("adding repos")
|
||||
for _, repo := range conf.Source.Any {
|
||||
log.Info().
|
||||
Str("stage", "whatever").
|
||||
Msgf("adding repos")
|
||||
if repo.URL == "" {
|
||||
log.Error().
|
||||
Str("stage", "whatever").
|
||||
|
||||
Reference in New Issue
Block a user