git-watchtower 1.9.11 → 1.9.12
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/bin/git-watchtower.js +0 -1
- package/package.json +1 -1
package/bin/git-watchtower.js
CHANGED
|
@@ -1403,7 +1403,6 @@ async function switchToBranch(branchName, recordHistory = true) {
|
|
|
1403
1403
|
const hasLocal = localBranches.split('\n').some(b => b.trim().replace(/^\* /, '') === safeBranchName);
|
|
1404
1404
|
|
|
1405
1405
|
if (hasLocal) {
|
|
1406
|
-
await execGitSilent(['checkout', '--', '.'], { cwd: PROJECT_ROOT });
|
|
1407
1406
|
await execGit(['checkout', safeBranchName], { cwd: PROJECT_ROOT });
|
|
1408
1407
|
} else {
|
|
1409
1408
|
await execGit(['checkout', '-b', safeBranchName, `${REMOTE_NAME}/${safeBranchName}`], { cwd: PROJECT_ROOT });
|
package/package.json
CHANGED