diff options
Diffstat (limited to 'internal/gitaly/service/repository/util.go')
-rw-r--r-- | internal/gitaly/service/repository/util.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/gitaly/service/repository/util.go b/internal/gitaly/service/repository/util.go index 9f11c3707..c4807e896 100644 --- a/internal/gitaly/service/repository/util.go +++ b/internal/gitaly/service/repository/util.go @@ -22,10 +22,10 @@ import ( func (s *server) removeOriginInRepo(ctx context.Context, repository *gitalypb.Repository) error { cmd, err := s.gitCmdFactory.New(ctx, repository, git.SubCmd{Name: "remote", Args: []string{"remove", "origin"}}, git.WithRefTxHook(repository)) if err != nil { - return fmt.Errorf("remote cmd start: %v", err) + return fmt.Errorf("remote cmd start: %w", err) } if err := cmd.Wait(); err != nil { - return fmt.Errorf("remote cmd wait: %v", err) + return fmt.Errorf("remote cmd wait: %w", err) } return nil |