| 255 | 255 | // Print formatted header |
| 256 | 256 | console.log(); |
| 257 | 257 | console.log(`SillyTavern ${version.pkgVersion}`); |
| 258 | | - console.log(version.gitBranch ? `Running '${version.gitBranch}' (${version.gitRevision}) - ${version.commitDate}` : ''); |
| 258 | + if (version.gitBranch) { |
| 259 | | - if (version.gitBranch && !version.isLatest && ['staging', 'release'].includes(version.gitBranch)) { |
| 259 | + console.log(`Running '${version.gitBranch}' (${version.gitRevision}) - ${version.commitDate}`); |
| 260 | + if (!version.isLatest && ['staging', 'release'].includes(version.gitBranch)) { |
| 260 | 261 | console.log('INFO: Currently not on the latest commit.'); |
| 261 | 262 | console.log(' Run \'git pull\' to update. If you have any merge conflicts, run \'git reset --hard\' and \'git pull\' to reset your branch.'); |
| 262 | 263 | } |
| 264 | + } |
| 263 | 265 | console.log(); |
| 264 | 266 | |
| 265 | 267 | const directories = await getUserDirectoriesList(); |