Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/gitaly/service/repository/create_bundle_from_ref_list.go')
-rw-r--r--internal/gitaly/service/repository/create_bundle_from_ref_list.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/internal/gitaly/service/repository/create_bundle_from_ref_list.go b/internal/gitaly/service/repository/create_bundle_from_ref_list.go
index 6bc15efd1..2829b4da7 100644
--- a/internal/gitaly/service/repository/create_bundle_from_ref_list.go
+++ b/internal/gitaly/service/repository/create_bundle_from_ref_list.go
@@ -68,10 +68,7 @@ func (s *server) CreateBundleFromRefList(stream gitalypb.RepositoryService_Creat
return status.Errorf(codes.Internal, "stream writer failed: %v", err)
}
- err = cmd.Wait()
- if isExitWithCode(err, 128) && bytes.HasPrefix(stderr.Bytes(), []byte("fatal: Refusing to create empty bundle.")) {
- return status.Errorf(codes.FailedPrecondition, "cmd wait failed: refusing to create empty bundle")
- } else if err != nil {
+ if err := cmd.Wait(); err != nil {
return status.Errorf(codes.Internal, "cmd wait failed: %v, stderr: %q", err, stderr.String())
}