ppuzio Claude Opus 5.5 commited on
Commit
34e7ea3
·
1 Parent(s): a4e6b16

AGENTS.md: fetch PR refs with noop negotiation

Browse files

The Hub fails have/ack negotiation for some refs/pr/N
(fatal: expected 'acknowledgments'); noop skips it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. AGENTS.md +7 -1
AGENTS.md CHANGED
@@ -230,10 +230,16 @@ Opened this way the PR starts in **draft** — publish it from the web UI.
230
  Pick up an existing PR (42 here):
231
 
232
  ```bash
233
- git fetch origin refs/pr/42:pr/42 && git checkout pr/42
 
234
  git push origin pr/42:refs/pr/42
235
  ```
236
 
 
 
 
 
 
237
  `repo_type='dataset'` is required on every `huggingface_hub` call — this is a
238
  dataset repo, not a model. Push straight to `main` only when cutting a release.
239
 
 
230
  Pick up an existing PR (42 here):
231
 
232
  ```bash
233
+ GIT_LFS_SKIP_SMUDGE=1 git -c fetch.negotiationAlgorithm=noop fetch origin refs/pr/42:pr/42
234
+ git checkout pr/42
235
  git push origin pr/42:refs/pr/42
236
  ```
237
 
238
+ The `noop` negotiation is needed: for some refs the Hub fails the have/ack
239
+ exchange (`fatal: expected 'acknowledgments'`), and skipping it makes the server
240
+ send the full history instead. `GIT_LFS_SKIP_SMUDGE=1` keeps it to pointers;
241
+ pull a single blob with `git lfs pull --include <path>`.
242
+
243
  `repo_type='dataset'` is required on every `huggingface_hub` call — this is a
244
  dataset repo, not a model. Push straight to `main` only when cutting a release.
245