| 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 | | - console.log('INFO: Currently not on the latest commit.'); |
| 260 | + if (!version.isLatest && ['staging', 'release'].includes(version.gitBranch)) { |
| 261 | | - console.log(' Run \'git pull\' to update. If you have any merge conflicts, run \'git reset --hard\' and \'git pull\' to reset your branch.'); |
| 261 | + console.log('INFO: Currently not on the latest commit.'); |
| 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.'); |
| 263 | + } |
| 262 | 264 | } |
| 263 | 265 | console.log(); |
| 264 | 266 | |