Преглед изворни кода

Merge pull request #1213 from BluettDream/dev_homerouter

fix(Updater): change to show remote branch
huangrunheng пре 1 година
родитељ
комит
146d4ff36c
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      module/server/updater.py

+ 1 - 2
module/server/updater.py

@@ -63,8 +63,7 @@ class Updater(DeployConfig, GitManager, PipManager):
             return logs
 
     def current_branch(self) -> str:
-        branch = self.execute_output(f'{self.git} branch --show-current')
-        return branch.strip()
+        return self.Branch
 
     def current_commit(self) -> str:
         return self.get_commit()