automata-cli 0.2.0-develop.20 → 0.2.0-develop.21
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/index.js +9 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -283,6 +283,12 @@ function checkoutAndPull(targetBranch) {
|
|
|
283
283
|
throw new Error(`Failed to pull ${targetBranch}: ${pull.stderr.trim()}`);
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
+
function fetchPrune() {
|
|
287
|
+
const result = run("git", ["fetch", "--prune"]);
|
|
288
|
+
if (result.status !== 0) {
|
|
289
|
+
throw new Error(`Failed to fetch --prune: ${result.stderr.trim()}`);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
286
292
|
function deleteLocalBranch(branch) {
|
|
287
293
|
const result = run("git", ["branch", "-d", branch]);
|
|
288
294
|
if (result.status !== 0) {
|
|
@@ -375,6 +381,9 @@ var finishFeatureCmd = new Command2("finish-feature").description("Clean up a me
|
|
|
375
381
|
process.exit(1);
|
|
376
382
|
}
|
|
377
383
|
try {
|
|
384
|
+
process.stdout.write(`Fetching and pruning remote refs...
|
|
385
|
+
`);
|
|
386
|
+
fetchPrune();
|
|
378
387
|
process.stdout.write(`Checking out develop and pulling latest...
|
|
379
388
|
`);
|
|
380
389
|
checkoutAndPull("develop");
|