diff --git a/internal/git/config.go b/internal/git/config.go index f9d25c7f4..e5f575b52 100644 --- a/internal/git/config.go +++ b/internal/git/config.go @@ -19,7 +19,7 @@ func ExtractRepoFromConfig() (result config.Repo, err error) { if err != nil { return result, fmt.Errorf("no remote configured to list refs from") } - log.Debugf("got raw git url: %q", out) + log.WithField("rawurl", string(out)).Debugf("got git url") return ExtractRepoFromURL(out) } @@ -57,8 +57,10 @@ func ExtractRepoFromURL(rawurl string) (config.Repo, error) { if len(ss) < 2 { return config.Repo{}, fmt.Errorf("unsupported repository URL: %s", rawurl) } - return config.Repo{ + repo := config.Repo{ Owner: strings.Join(ss[:len(ss)-1], "/"), Name: ss[len(ss)-1], - }, nil + } + log.WithField("owner", repo.Owner).WithField("name", repo.Name).Debugf("parsed url") + return repo, nil }