From 9ea6b5dd6aba409ef4629e723ae3eddaad166cd0 Mon Sep 17 00:00:00 2001 From: Noam Gal Date: Mon, 7 Jun 2021 14:35:47 +0300 Subject: [PATCH] fixed logs (#90) --- cmd/commands/common.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/commands/common.go b/cmd/commands/common.go index bf1c3559..38291359 100644 --- a/cmd/commands/common.go +++ b/cmd/commands/common.go @@ -41,19 +41,19 @@ var ( prepareRepo = func(ctx context.Context, cloneOpts *git.CloneOptions, projectName string) (git.Repository, fs.FS, error) { log.G().WithFields(log.Fields{ - "repoURL": cloneOpts.URL, - "revision": cloneOpts.Revision, + "repoURL": cloneOpts.URL(), + "revision": cloneOpts.Revision(), }).Debug("starting with options: ") // clone repo - log.G().Infof("cloning git repository: %s", cloneOpts.URL) + log.G().Infof("cloning git repository: %s", cloneOpts.URL()) r, repofs, err := clone(ctx, cloneOpts) if err != nil { return nil, nil, fmt.Errorf("Failed cloning the repository: %w", err) } root := repofs.Root() - log.G().Infof("using revision: \"%s\", installation path: \"%s\"", cloneOpts.Revision, root) + log.G().Infof("using revision: \"%s\", installation path: \"%s\"", cloneOpts.Revision(), root) if !repofs.ExistsOrDie(store.Default.BootsrtrapDir) { cmd := "repo bootstrap" if root != "/" {