Commit 5bdc13f
committed
fix(scripts): use explicit refspec in create-adaptation-pr.sh (leanprover-community#32612)
This PR fixes a bug in `create-adaptation-pr.sh` where `git push` fails with:
```
fatal: refs/remotes/nightly-testing/HEAD cannot be resolved to branch
```
This happens when the remote and branch share the same name (`nightly-testing`), causing git's ref resolution to get confused by the symbolic `refs/remotes/nightly-testing/HEAD` ref. Using an explicit `src:dst` refspec removes the ambiguity.
🤖 Prepared with Claude Code1 parent 7d38683 commit 5bdc13f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
| 387 | + | |
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| |||
0 commit comments