Datasets:
AGENTS.md: fetch PR refs with noop negotiation
Browse filesThe 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>
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
|
|
|
|
| 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 |
|