@kokojs/cli
Advanced tools
Comparing version 1.3.5 to 1.3.6
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.checkout = void 0; | ||
const path_1 = require("path"); | ||
const utils_1 = require("../../utils"); | ||
@@ -68,3 +69,3 @@ const shared_1 = require("../shared"); | ||
type: 'list', | ||
name: 'selectedStrategy', | ||
name: 'type', | ||
choices: [ | ||
@@ -125,4 +126,5 @@ { | ||
shared_1.ensureSubmoduleBranch(shared_1.getSubmodules(), false); | ||
if (!shared_1.isWorkingTreeClean()) { | ||
utils_1.runCommand('git commit -am "chore: 更新 Submodules" -n'); | ||
if (!shared_1.isWorkingTreeClean() && selectedModules.length) { | ||
const configPath = path_1.relative(process.cwd(), path_1.join(shared_1.gitDir, '.gitmodules')); | ||
utils_1.runCommand(`git commit ${configPath} -m "chore: 更新 .gitmodules 分支配置" -n`); | ||
} | ||
@@ -129,0 +131,0 @@ } |
{ | ||
"name": "@kokojs/cli", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "files": [ |
44384
1249