File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,23 @@ func buildUpdateRequests(caps *capability.List, req *PushRequest) *packp.UpdateR
25
25
// ofs-delta, atomic and push-options.
26
26
for _ , cap := range []capability.Capability {
27
27
capability .ReportStatus ,
28
- capability .ReportStatusV2 ,
28
+ // TODO: support report-status-v2
29
+ // capability.ReportStatusV2,
29
30
capability .DeleteRefs ,
30
31
capability .OFSDelta ,
31
- capability .Atomic ,
32
- // capability.PushOptions, // This is set later if options are present.
32
+
33
+ // This is set later if options are present.
34
+ // capability.PushOptions,
33
35
} {
34
36
if caps .Supports (cap ) {
35
37
upreq .Capabilities .Set (cap ) //nolint:errcheck
36
38
}
37
39
}
38
40
41
+ if req .Atomic && caps .Supports (capability .Atomic ) {
42
+ upreq .Capabilities .Set (capability .Atomic ) //nolint:errcheck
43
+ }
44
+
39
45
upreq .Commands = req .Commands
40
46
41
47
return upreq
You can’t perform that action at this time.
0 commit comments