codemodctl 0.1.34 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +5 -0
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -118,6 +118,11 @@ const createPrCommand = defineCommand({
|
|
|
118
118
|
process.exit(1);
|
|
119
119
|
}
|
|
120
120
|
{
|
|
121
|
+
const headSha = await $`git rev-parse HEAD`;
|
|
122
|
+
const branchInfo = await $`git log --oneline -1`;
|
|
123
|
+
console.log(`Pushing HEAD=${headSha.stdout.trim()} (${branchInfo.stdout.trim()}) to refs/heads/${codemodBranchName}`);
|
|
124
|
+
const lsRemote = await $({ reject: false })`git -c http.version=HTTP/1.1 ls-remote origin refs/heads/${codemodBranchName}`;
|
|
125
|
+
console.log(`Remote ref: ${lsRemote.stdout.trim() || "(branch does not exist)"}`);
|
|
121
126
|
const maxRetries = 3;
|
|
122
127
|
let pushed = false;
|
|
123
128
|
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|