mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +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'
|
||||
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'
|
||||
Upgrade.executioner(command, command, 1)
|
||||
|
||||
Reference in New Issue
Block a user