Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore(branch): add empty line back (#10561)

h3n4l30a67ae31120
diff --git a/backend/api/v1/branch_service.go b/backend/api/v1/branch_service.go
index d25a4455a9..7fdb7f6039 100644
--- a/backend/api/v1/branch_service.go
+++ b/backend/api/v1/branch_service.go
@@ -544,6 +544,9 @@ func (s *BranchService) RebaseBranch(ctx context.Context, request *v1pb.RebaseBr
if err != nil {
return nil, status.Errorf(codes.Internal, "failed to read conflict schema, %v", err)
}
+ if strings.HasSuffix(newBaseSchema, "\n") && bytes.HasSuffix(baseBranch.BaseSchema, []byte("\n")) && bytes.HasSuffix(baseBranch.HeadSchema, []byte("\n")) {
+ sb = append(sb, []byte("\n")...)
+ }
conflictSchemaString := string(sb)
return &v1pb.RebaseBranchResponse{Result: &v1pb.RebaseBranchResponse_ConflictSchema{ConflictSchema: conflictSchemaString}}, nil
}