Skip to content

Commit

Permalink
fixed logs (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
ATGardner authored Jun 7, 2021
1 parent 5bbc9d2 commit 9ea6b5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/commands/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "/" {
Expand Down

0 comments on commit 9ea6b5d

Please sign in to comment.