diff --git a/cmd/kratos/internal/base/repo.go b/cmd/kratos/internal/base/repo.go index cd7b650f0..55b12ac0d 100644 --- a/cmd/kratos/internal/base/repo.go +++ b/cmd/kratos/internal/base/repo.go @@ -77,10 +77,10 @@ func (r *Repo) Pull(ctx context.Context) error { cmd = exec.CommandContext(ctx, "git", "pull") cmd.Dir = r.Path() out, err := cmd.CombinedOutput() + fmt.Println(string(out)) if err != nil { return err } - fmt.Println(string(out)) return err } @@ -96,10 +96,10 @@ func (r *Repo) Clone(ctx context.Context) error { cmd = exec.CommandContext(ctx, "git", "clone", "-b", r.branch, r.url, r.Path()) } out, err := cmd.CombinedOutput() + fmt.Println(string(out)) if err != nil { return err } - fmt.Println(string(out)) return nil }