this should work right, or did the syntax change: · Entire

Introduction

This should work right, or did the syntax change:

❯ go run ./cmd/git-sync sync

Flags:

Example URLs:

Error Message

error: list target refs: pkt-line 1: cannot read hash, pkt-line too short (# service=git-receive-pack)
exit status 1

Debugging Steps

  1. Checking the current CLI and sync path in this repo.
  2. Tracing the origin of the git-receive-pack pkt-line error to determine if it's due to syntax or protocol behavior.
  3. Confirming that flags are still valid and checking for target ref discovery issues.

Additional Details

Notes on Workflows

Candidate Changes to Investigate

  1. Target Discovery: Inspect changes in the target discovery mechanism following codebase rewrites.
  2. Decoder Logic: Ensure the decoding logic is robust against empty or unexpected advertisement shapes.

Conclusion

If issues persist regarding the target receive-pack advertisement, logging improvements should be implemented to show the first bytes of any malformed response to expedite debugging.