mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 22:36:12 +01:00
fix a minor upgrade bug if on dev branch
This commit is contained in:
@@ -1439,7 +1439,7 @@ class Upgrade:
|
|||||||
command = 'git status'
|
command = 'git status'
|
||||||
currentBranch = subprocess.check_output(shlex.split(command)).decode()
|
currentBranch = subprocess.check_output(shlex.split(command)).decode()
|
||||||
|
|
||||||
if currentBranch.find('On branch %s' % (branch)) > -1:
|
if currentBranch.find('On branch %s' % (branch)) > -1 and currentBranch.find('On branch %s-dev' % (branch)) == -1:
|
||||||
|
|
||||||
command = 'git stash'
|
command = 'git stash'
|
||||||
Upgrade.executioner(command, command, 1)
|
Upgrade.executioner(command, command, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user