Title: Is there any error in the example of SSH section in 10-git-internals transfer-protocols? · Issue #322 · progit/progit2 · GitHub
Open Graph Title: Is there any error in the example of SSH section in 10-git-internals transfer-protocols? · Issue #322 · progit/progit2
X Title: Is there any error in the example of SSH section in 10-git-internals transfer-protocols? · Issue #322 · progit/progit2
Description: Here is the example: [source,console] ---- $ ssh -x git@server "git-receive-pack 'simplegit-progit.git'" 005bca82a6dff817ec66f4437202690a93763949 refs/heads/master report-status \ delete-refs side-band-64k quiet ofs-delta \ agent=git/2:2...
Open Graph Description: Here is the example: [source,console] ---- $ ssh -x git@server "git-receive-pack 'simplegit-progit.git'" 005bca82a6dff817ec66f4437202690a93763949 refs/heads/master report-status \ delete-refs side-...
X Description: Here is the example: [source,console] ---- $ ssh -x git@server "git-receive-pack 'simplegit-progit.git'" 005bca82a6dff817ec66f4437202690a93763949 refs/heads/master report-status \...
Opengraph URL: https://github.com/progit/progit2/issues/322
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Is there any error in the example of SSH section in 10-git-internals transfer-protocols?","articleBody":"Here is the example:\n\n```\n[source,console]\n----\n$ ssh -x git@server \"git-receive-pack 'simplegit-progit.git'\"\n005bca82a6dff817ec66f4437202690a93763949 refs/heads/master report-status \\\n delete-refs side-band-64k quiet ofs-delta \\\nagent=git/2:2.1.1+github-607-gfba4028 delete-refs\n003e085bb3bcb608e1e84b2432f8ecbe6306e7e7 refs/heads/topic\n0000\n----\n```\n\nThe first 005b means the length of the line, that's 91 bytes, but\nthe length of\n\n```\n005bca82a6dff817ec66f4437202690a93763949 refs/heads/master report-status \\\n delete-refs side-band-64k quiet ofs-delta \\\nagent=git/2:2.1.1+github-607-gfba4028 delete-refs\n```\n\nis 164, but 91.\n\nlet's look at the second line, a simple line:\n\n```\n003e085bb3bcb608e1e84b2432f8ecbe6306e7e7 refs/heads/topic\n```\n\nthe length of this line is 57, but the first 4 chars is 003e, 62 in oct.\n\n---\n\nSo I do a simple test:\n\n```\nssh -x git@github.com \"git-receive-pack 'zwpaper/progit2-zh'\"\n00ca82d2b8601d253dd1df545d66543d12adba06f73c refs/heads/06-github-4-managing-orgreport-status delete-refs side-band-64k quiet atomic ofs-delta agent=git/2:2.4.0~peff-faster-fetch-pruning-1043-gc837c96\n0053f6a3af3bcd0da7f51393a4d746b72346aa12b886 refs/heads/10-git-internals-packfiles\n005e83cc8df409dd347e173bcdd9c630bf245185f3f2 refs/heads/double_quote_mark_in_translation_note\n003faf9ee732e6977aa621e30c8ceb152375f0911346 refs/heads/master\n0057be6fc3f4ce49ed58c5e6e5fd778796bcdec70461 refs/heads/smart_dumb_in_TRANSLATION_NOTE\n0000Connection to github.com closed by remote host.\n```\n\nIf we add one byte for '\\n', then all lines are correct but the first line.\nSo I check the result in vim, and find a '0x00' after '06-github-4-managing-org', then it make sense.\n\n```\n00ca82d2b8601d253dd1df545d66543d12adba06f73c refs/heads/06-github-4-managing-org*0x00*report-status delete-refs side-band-64k quiet atomic ofs-delta agent=git/2:2.4.0~peff-faster-fetch-pruning-1043-gc837c96\n```\n\nbut when I look at the examples in progit2, the length of the first line even larger than the 4 chars says.\n\nIs this a mistake, or I misunderstand something?\n","author":{"url":"https://github.com/zwpaper","@type":"Person","name":"zwpaper"},"datePublished":"2015-06-24T10:10:22Z","url":"https://github.com/progit/progit2/issues/322"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c6103f02-d34f-e0f5-c729-398675c8aa48 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5F2:6BF84:6C925:98B56:6B05C368 |
| html-safe-nonce | 2b5ca9c73afe39993ad2ca68fb41264fb6a2de20c48490ac7aee0fd1c2bfb3ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUYyOjZCRjg0OjZDOTI1Ojk4QjU2OjZCMDVDMzY4IiwidmlzaXRvcl9pZCI6IjYxMTM4MDMwNjc2Njc2Mjg5MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 98d439b136ccac5ab2fe36cb59cd16e7c3aff651a3e4c1843e2e853027c21024 |
| hovercard-subject-tag | issue:90631783 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/progit/progit2/322/issue_layout |
| twitter:image | https://opengraph.githubassets.com/269619d35e214ea32734c486bda2931365271b44b45cdf6189d59a8a6fc0ec40/progit/progit2/issues/322 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/269619d35e214ea32734c486bda2931365271b44b45cdf6189d59a8a6fc0ec40/progit/progit2/issues/322 |
| og:image:alt | Here is the example: [source,console] ---- $ ssh -x git@server "git-receive-pack 'simplegit-progit.git'" 005bca82a6dff817ec66f4437202690a93763949 refs/heads/master report-status \ delete-refs side-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zwpaper |
| hostname | github.com |
| expected-hostname | github.com |
| None | 13b1c5df76a26b2d8420784ae7f9fb9c438fc6cb0c95a689d26fb49879d8e556 |
| turbo-cache-control | no-preview |
| go-import | github.com/progit/progit2 git https://github.com/progit/progit2.git |
| octolytics-dimension-user_id | 95588 |
| octolytics-dimension-user_login | progit |
| octolytics-dimension-repository_id | 15400220 |
| octolytics-dimension-repository_nwo | progit/progit2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 15400220 |
| octolytics-dimension-repository_network_root_nwo | progit/progit2 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bcf1e3e7f14567fd89b0218ee06dd0aad8f1d288 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width