GitLabgitlab-org
cli
main
1//go:build !integration
3package create
5import (
6 "errors"
7 "os"
8 "path/filepath"
9 "testing"
11 "github.com/stretchr/testify/assert"
12 "github.com/stretchr/testify/require"
13 "go.uber.org/mock/gomock"
15 gitlab "gitlab.com/gitlab-org/api/client-go/v3"
16 gitlabtesting "gitlab.com/gitlab-org/api/client-go/v3/testing"
18 "gitlab.com/gitlab-org/cli/internal/config"
19 "gitlab.com/gitlab-org/cli/internal/testing/cmdtest"
20)
22func TestDraftCreate(t *testing.T) {
23 t.Parallel()
25 t.Run("creates a general pending comment and prints its ID", func(t *testing.T) {
26 t.Parallel()
28 tc := setupMR(t)
29 tc.MockDraftNotes.EXPECT().
30 CreateDraftNote("OWNER/REPO", int64(1), gomock.Any(), gomock.Any()).
31 DoAndReturn(func(_ any, _ int64, opts *gitlab.CreateDraftNoteOptions, _ ...gitlab.RequestOptionFunc) (*gitlab.DraftNote, *gitlab.Response, error) {
32 assert.Equal(t, "Needs work", *opts.Note)
33 assert.Nil(t, opts.Position)
34 assert.Nil(t, opts.InReplyToDiscussionID)
35 return &gitlab.DraftNote{ID: 601}, nil, nil
36 })
38 output, err := setupExec(t, tc)(`1 -m "Needs work"`)
39 require.NoError(t, err)
40 assert.Equal(t, "601\n", output.String())
41 assert.Empty(t, output.Stderr())
42 })
44 t.Run("reads the body from stdin", func(t *testing.T) {
45 t.Parallel()
47 tc := setupMR(t)
48 tc.MockDraftNotes.EXPECT().
49 CreateDraftNote("OWNER/REPO", int64(1), gomock.Any(), gomock.Any()).
50 DoAndReturn(func(_ any, _ int64, opts *gitlab.CreateDraftNoteOptions, _ ...gitlab.RequestOptionFunc) (*gitlab.DraftNote, *gitlab.Response, error) {
51 assert.Equal(t, "from stdin", *opts.Note)
52 return &gitlab.DraftNote{ID: 602}, nil, nil
53 })
55 output, err := setupExec(t, tc, cmdtest.WithStdin("from stdin\n"))(`1`)
56 require.NoError(t, err)
57 assert.Equal(t, "602\n", output.String())
58 })
60 t.Run("diff comment carries the resolved position", func(t *testing.T) {
61 t.Parallel()
63 tc := setupMR(t)
64 mockDiffVersion(t, tc)
65 tc.MockDraftNotes.EXPECT().
66 CreateDraftNote("OWNER/REPO", int64(1), gomock.Any(), gomock.Any()).
67 DoAndReturn(func(_ any, _ int64, opts *gitlab.CreateDraftNoteOptions, _ ...gitlab.RequestOptionFunc) (*gitlab.DraftNote, *gitlab.Response, error) {
68 require.NotNil(t, opts.Position)
69 assert.Equal(t, "main.go", *opts.Position.NewPath)
70 assert.Equal(t, "head", *opts.Position.HeadSHA)
71 assert.Equal(t, int64(2), *opts.Position.NewLine)
72 assert.Nil(t, opts.InReplyToDiscussionID)
73 return &gitlab.DraftNote{ID: 603}, nil, nil
74 })
76 output, err := setupExec(t, tc)(`1 --file main.go --line 2 -m "Off-by-one?"`)
77 require.NoError(t, err)
78 assert.Equal(t, "603\n", output.String())
79 })
81 t.Run("diff comment on a removed line", func(t *testing.T) {
82 t.Parallel()
84 tc := setupMR(t)
85 mockDiffVersion(t, tc)
86 tc.MockDraftNotes.EXPECT().
87 CreateDraftNote("OWNER/REPO", int64(1), gomock.Any(), gomock.Any()).
88 DoAndReturn(func(_ any, _ int64, opts *gitlab.CreateDraftNoteOptions, _ ...gitlab.RequestOptionFunc) (*gitlab.DraftNote, *gitlab.Response, error) {
89 require.NotNil(t, opts.Position)
90 assert.Equal(t, int64(2), *opts.Position.OldLine)
91 assert.Nil(t, opts.Position.NewLine)
92 return &gitlab.DraftNote{ID: 604}, nil, nil
93 })
95 _, err := setupExec(t, tc)(`1 --file main.go --old-line 2 -m "Why?"`)
96 require.NoError(t, err)
97 })
99 t.Run("diff comment on a line range carries the line range", func(t *testing.T) {
100 t.Parallel()
102 tc := setupMR(t)
103 mockDiffVersion(t, tc)
104 tc.MockDraftNotes.EXPECT().
105 CreateDraftNote("OWNER/REPO", int64(1), gomock.Any(), gomock.Any()).
106 DoAndReturn(func(_ any, _ int64, opts *gitlab.CreateDraftNoteOptions, _ ...gitlab.RequestOptionFunc) (*gitlab.DraftNote, *gitlab.Response, error) {
107 require.NotNil(t, opts.Position)
108 assert.Equal(t, new(int64(3)), opts.Position.NewLine)
109 require.NotNil(t, opts.Position.LineRange)
110 assert.Equal(t, new(int64(2)), opts.Position.LineRange.Start.NewLine)
111 assert.Equal(t, new(int64(3)), opts.Position.LineRange.End.NewLine)
112 return &gitlab.DraftNote{ID: 607}, nil, nil
113 })
115 _, err := setupExec(t, tc)(`1 --file main.go --line 2:3 -m "Extract this."`)
116 require.NoError(t, err)
117 })
119 t.Run("file-level comment targets the file without --line", func(t *testing.T) {
120 t.Parallel()
122 tc := setupMR(t)
123 mockDiffVersion(t, tc)
124 tc.MockDraftNotes.EXPECT().
125 CreateDraftNote("OWNER/REPO", int64(1), gomock.Any(), gomock.Any()).
126 DoAndReturn(func(_ any, _ int64, opts *gitlab.CreateDraftNoteOptions, _ ...gitlab.RequestOptionFunc) (*gitlab.DraftNote, *gitlab.Response, error) {
127 require.NotNil(t, opts.Position)
128 assert.Equal(t, "main.go", *opts.Position.NewPath)
129 assert.Nil(t, opts.Position.LineRange)
130 return &gitlab.DraftNote{ID: 608}, nil, nil
131 })
133 _, err := setupExec(t, tc)(`1 --file main.go -m "General note on this file."`)
134 require.NoError(t, err)
135 })
137 t.Run("file missing from the diff fails before creating anything", func(t *testing.T) {
138 t.Parallel()
140 tc := setupMR(t)
141 mockDiffVersion(t, tc)
143 _, err := setupExec(t, tc)(`1 --file nope.go --line 1 -m "hi"`)
144 require.ErrorContains(t, err, `file "nope.go" not found in MR diff`)
145 })
147 t.Run("reply resolves a discussion ID prefix", func(t *testing.T) {
148 t.Parallel()
150 const fullID = "abc12345deadbeef1234567890abcdef12345678"
152 tc := setupMR(t)
153 tc.MockDiscussions.EXPECT().
154 ListMergeRequestDiscussions("OWNER/REPO", int64(1), gomock.Any(), gomock.Any()).
155 Return([]*gitlab.Discussion{{ID: fullID}}, &gitlab.Response{}, nil)
156 tc.MockDraftNotes.EXPECT().
157 CreateDraftNote("OWNER/REPO", int64(1), gomock.Any(), gomock.Any()).
158 DoAndReturn(func(_ any, _ int64, opts *gitlab.CreateDraftNoteOptions, _ ...gitlab.RequestOptionFunc) (*gitlab.DraftNote, *gitlab.Response, error) {
159 require.NotNil(t, opts.InReplyToDiscussionID)
160 assert.Equal(t, fullID, *opts.InReplyToDiscussionID)
161 assert.Nil(t, opts.Position)
162 return &gitlab.DraftNote{ID: 605}, nil, nil
163 })
165 output, err := setupExec(t, tc)(`1 --reply abc12345 -m "Agreed."`)
166 require.NoError(t, err)
167 assert.Equal(t, "605\n", output.String())
168 })
170 t.Run("attachment is appended to the body", func(t *testing.T) {
171 t.Parallel()
173 path := filepath.Join(t.TempDir(), "screenshot.png")
174 require.NoError(t, os.WriteFile(path, []byte("\x89PNG\r\n\x1a\nfake png body"), 0o600))
176 tc := setupMR(t)
177 tc.MockProjectMarkdownUploads.EXPECT().
178 UploadProjectMarkdown("OWNER/REPO", gomock.Any(), "screenshot.png", gomock.Any()).
179 Return(&gitlab.ProjectMarkdownUploadedFile{Markdown: ""}, nil, nil)
180 tc.MockDraftNotes.EXPECT().
181 CreateDraftNote("OWNER/REPO", int64(1), gomock.Any(), gomock.Any()).
182 DoAndReturn(func(_ any, _ int64, opts *gitlab.CreateDraftNoteOptions, _ ...gitlab.RequestOptionFunc) (*gitlab.DraftNote, *gitlab.Response, error) {
183 assert.Equal(t, "", *opts.Note)
184 return &gitlab.DraftNote{ID: 606}, nil, nil
185 })
187 _, err := setupExec(t, tc)(`1 --attach ` + path)
188 require.NoError(t, err)
189 })
191 t.Run("attachment is appended to a body piped on stdin", func(t *testing.T) {
192 t.Parallel()
194 path := filepath.Join(t.TempDir(), "screenshot.png")
195 require.NoError(t, os.WriteFile(path, []byte("\x89PNG\r\n\x1a\nfake png body"), 0o600))
197 tc := setupMR(t)
198 tc.MockProjectMarkdownUploads.EXPECT().
199 UploadProjectMarkdown("OWNER/REPO", gomock.Any(), "screenshot.png", gomock.Any()).
200 Return(&gitlab.ProjectMarkdownUploadedFile{Markdown: ""}, nil, nil)
201 tc.MockDraftNotes.EXPECT().
202 CreateDraftNote("OWNER/REPO", int64(1), gomock.Any(), gomock.Any()).
203 DoAndReturn(func(_ any, _ int64, opts *gitlab.CreateDraftNoteOptions, _ ...gitlab.RequestOptionFunc) (*gitlab.DraftNote, *gitlab.Response, error) {
204 assert.Equal(t, "Piped body.\n\n", *opts.Note)
205 return &gitlab.DraftNote{ID: 607}, nil, nil
206 })
208 _, err := setupExec(t, tc, cmdtest.WithStdin("Piped body.\n"))(`1 --attach ` + path)
209 require.NoError(t, err)
210 })
212 t.Run("API error is wrapped", func(t *testing.T) {
213 t.Parallel()
215 tc := setupMR(t)
216 tc.MockDraftNotes.EXPECT().
217 CreateDraftNote("OWNER/REPO", int64(1), gomock.Any(), gomock.Any()).
218 Return(nil, nil, errors.New("boom"))
220 _, err := setupExec(t, tc)(`1 -m "hi"`)
221 require.ErrorContains(t, err, "failed to create pending review comment: boom")
222 })
223}
225func TestDraftCreate_Validation(t *testing.T) {
226 t.Parallel()
228 tests := []struct {
229 name string
230 cli string
231 stdin string
232 mockMR bool
233 wantErr string
234 }{
235 {
236 name: "empty body",
237 cli: `1`,
238 stdin: " \n",
239 mockMR: true,
240 wantErr: "aborted: comment has an empty message",
241 },
242 // No -m and no API mocks: these must fail before any request or body prompt.
243 {
244 name: "reply prefix shorter than 8 characters",
245 cli: `1 --reply abc`,
246 wantErr: "discussion ID prefix must be at least 8 characters, got 3",
247 },
248 {
249 name: "--line without --file",
250 cli: `1 --line 5`,
251 wantErr: "--line and --old-line require --file",
252 },
253 {
254 name: "--old-line without --file",
255 cli: `1 --old-line 5`,
256 wantErr: "--line and --old-line require --file",
257 },
258 {
259 name: "malformed --line",
260 cli: `1 --file main.go --line 10-15`,
261 wantErr: `invalid argument "10-15" for "--line" flag: invalid line number "10-15"`,
262 },
263 {
264 name: "--reply with --file",
265 cli: `1 --reply abc12345 --file main.go -m "hi"`,
266 wantErr: "if any flags in the group [reply file] are set none of the others can be",
267 },
268 {
269 name: "--line with --old-line",
270 cli: `1 --file main.go --line 1 --old-line 1 -m "hi"`,
271 wantErr: "if any flags in the group [line old-line] are set none of the others can be",
272 },
273 }
275 for _, tt := range tests {
276 t.Run(tt.name, func(t *testing.T) {
277 t.Parallel()
279 tc := gitlabtesting.NewTestClient(t)
280 if tt.mockMR {
281 mockMR1(t, tc)
282 }
284 _, err := setupExec(t, tc, cmdtest.WithStdin(tt.stdin))(tt.cli)
285 require.ErrorContains(t, err, tt.wantErr)
286 })
287 }
288}
290func setupMR(t *testing.T) *gitlabtesting.TestClient {
291 t.Helper()
292 tc := gitlabtesting.NewTestClient(t)
293 mockMR1(t, tc)
294 return tc
295}
297func mockMR1(t *testing.T, tc *gitlabtesting.TestClient) {
298 t.Helper()
299 tc.MockMergeRequests.EXPECT().
300 GetMergeRequest("OWNER/REPO", int64(1), gomock.Any()).
301 Return(&gitlab.MergeRequest{
302 BasicMergeRequest: gitlab.BasicMergeRequest{
303 ID: 1,
304 IID: 1,
305 WebURL: "https://gitlab.com/OWNER/REPO/merge_requests/1",
306 },
307 }, nil, nil)
308}
310func mockDiffVersion(t *testing.T, tc *gitlabtesting.TestClient) {
311 t.Helper()
312 tc.MockMergeRequests.EXPECT().
313 GetMergeRequestDiffVersions("OWNER/REPO", int64(1), gomock.Any(), gomock.Any()).
314 Return([]*gitlab.MergeRequestDiffVersion{{ID: 10}}, nil, nil)
315 tc.MockMergeRequests.EXPECT().
316 GetSingleMergeRequestDiffVersion("OWNER/REPO", int64(1), int64(10), gomock.Any(), gomock.Any()).
317 Return(&gitlab.MergeRequestDiffVersion{
318 ID: 10,
319 BaseCommitSHA: "base",
320 HeadCommitSHA: "head",
321 StartCommitSHA: "start",
322 Diffs: []*gitlab.Diff{{
323 NewPath: "main.go",
324 OldPath: "main.go",
325 Diff: "@@ -1,3 +1,3 @@\n line1\n-old line2\n+new line2\n line3\n",
326 }},
327 }, nil, nil)
328}
330func setupExec(t *testing.T, tc *gitlabtesting.TestClient, opts ...cmdtest.FactoryOption) cmdtest.CmdExecFunc {
331 t.Helper()
332 opts = append([]cmdtest.FactoryOption{
333 cmdtest.WithGitLabClient(tc.Client),
334 cmdtest.WithBaseRepo("OWNER", "REPO", ""),
335 cmdtest.WithConfig(config.NewFromString("editor: vi")),
336 }, opts...)
337 return cmdtest.SetupCmdForTest(t, NewCmd, false, opts...)
338}
Diagnostics10 git calls · 204 ms
CallStatusSizeTime0204 ms
discover200185 B4 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 git.response.bytes=185 git.server.agent=git/2.56.g1891de4-Linux git.server.object_format=sha1 git.server.caps=agent ls-refs fetch server-option object-format git.server.fetch=shallow wait-for-done filter git.protocol.version=2 git.pkt.frames=9 git.pkt.data=7 git.pkt.flush=2 git.pkt.delim=0 git.pkt.bytes=185 git.pkt.payload.max=35
ls-refs20058 KiB · hit3 ms
git.upload-pack ls-refs http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=3 git.response.bytes=59849 git.response.cache=HIT git.response.duration_ms=3 git.protocol.version=2 git.pkt.frames=731 git.pkt.data=730 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=59849 git.pkt.payload.max=143 git.ls_refs.count=730 git.ls_refs.head=refs/heads/main
fetchcombine:blob:none+tree:2 · deepen 12004.2 KiB · hit2 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 git.response.bytes=4273 git.response.cache=HIT git.response.duration_ms=2 git.fetch.filter=combine:blob:none+tree:2 git.fetch.wants=0dd7574dce9e385c5c30540e6c15657adc6bdce9 git.fetch.haves.count=0 git.fetch.deepen=1 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=7 git.pkt.data=5 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=4273 git.pkt.payload.max=4173 git.sideband.band1.bytes=4173 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=11 git.pack.bytes=4173 git.fetch.wide.objects=11 git.fetch.wide.extra_bytes=3930 git.fetch.wide.blobs=0
fetchtree:0 · deepen 1020032 KiB · hit2 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=1 git.response.bytes=32926 git.response.cache=HIT git.response.duration_ms=2 git.fetch.filter=tree:0 git.fetch.wants=0dd7574dce9e385c5c30540e6c15657adc6bdce9 git.fetch.haves.count=0 git.fetch.deepen=10 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=22 git.pkt.data=20 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=32926 git.pkt.payload.max=32046 git.sideband.band1.bytes=32046 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=80 git.pack.bytes=32046 git.pack.ofs_delta=36 git.pack.ref_delta=0 git.pack.chain.max=2 git.pack.trailer=cb0bad5d7ffc514895d8b21c4dd470327f90bc91 git.pack.full=44Open pack map
fetchtree:02001.8 KiB · hit1 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 git.response.bytes=1857 git.response.cache=HIT git.response.duration_ms=1 git.fetch.filter=tree:0 git.fetch.wants=dce174ff8c632a19d17eea99c8a9b7c37fb2b592 git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=1857 git.pkt.payload.max=1830 git.sideband.band1.bytes=1830 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=1 git.pack.bytes=1830 git.pack.trailer=fb03183b7909876778f740d196d7516811003517Open pack map
fetchtree:0200746 B · hit2 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 git.response.bytes=746 git.response.cache=HIT git.response.duration_ms=2 git.fetch.filter=tree:0 git.fetch.wants=f3d413a22af5a9c2fe9aa49709b1cb36d1351a7f git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=746 git.pkt.payload.max=719 git.sideband.band1.bytes=719 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=1 git.pack.bytes=719 git.pack.trailer=330baf80c59a4208b55120dff7dd824b7952b790Open pack map
fetchtree:0200540 B · hit2 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=3 git.response.bytes=540 git.response.cache=HIT git.response.duration_ms=2 git.fetch.filter=tree:0 git.fetch.wants=d1be7f980a856805fa31e30e01fff4db335cbe1b git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=540 git.pkt.payload.max=513 git.sideband.band1.bytes=513 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=1 git.pack.bytes=513 git.pack.trailer=6c82398efd91c9e023d583b948fde889bd4991b2Open pack map
fetchtree:0200259 B · hit3 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 git.response.bytes=259 git.response.cache=HIT git.response.duration_ms=3 git.fetch.filter=tree:0 git.fetch.wants=17c60670b892d93213e07c56d27bf8c78b2f6eee git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=259 git.pkt.payload.max=232 git.sideband.band1.bytes=232 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=1 git.pack.bytes=232 git.pack.trailer=a86d2eccaf7aae3b0fec29dbfe655131faf5a4adOpen pack map
fetchtree:0200138 B · hit2 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=188 git.response.bytes=138 git.response.cache=HIT git.response.duration_ms=2 git.fetch.filter=tree:0 git.fetch.wants=53bbd39c78f961e0a0fe37ba4fcbf1fe21e9024c git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=138 git.pkt.payload.max=111 git.sideband.band1.bytes=111 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=1 git.pack.bytes=111 git.pack.trailer=0704bbe2e9084500bbea5f0ef50ecd394148a127Open pack map
fetch2002.4 KiB188 ms
git.upload-pack fetch http.response.status_code=200 git.response.bytes=2504 git.response.cache=MISS git.response.duration_ms=188 git.fetch.wants=c1cad49aa9c5973d9dd76c0b45437113331d7ea7 git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=2504 git.pkt.payload.max=2477 git.sideband.band1.bytes=2477 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0
Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.
- Remote
- https://gitlab.com/gitlab-org/cli
- Ref
- refs/heads/main
- Commit
- 0dd7574dce9e385c5c30540e6c15657adc6bdce9
- cf-ray
- a5e295991b2b2407
- Request
- 6397ed36…
- Protocol
- v2 · sha1
- Agent
- git/2.56.g1891de4-Linux
- Filter
- advertised
- Fetch
- shallow wait-for-done filter
- Capabilities
- agent ls-refs fetch server-option object-format