Skip to content

Commit 5bdc13f

Browse files
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 Code
1 parent 7d38683 commit 5bdc13f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/create-adaptation-pr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ done
384384

385385
echo "All conflicts resolved and committed."
386386
echo "Proceeding with git push..."
387-
git push $NIGHTLY_REMOTE nightly-testing
387+
git push $NIGHTLY_REMOTE nightly-testing:nightly-testing
388388

389389
echo
390390
echo "### [auto] finished: checkout the original branch"

0 commit comments

Comments
 (0)