mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
parent
2ad7ffdd7e
commit
4ca25e4679
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user