Sfoglia il codice sorgente

fix(Updater): change to show remote branch

Azure 1 anno fa
parent
commit
130a2a107a
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  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.filepath('Branch')
 
     def current_commit(self) -> str:
         return self.get_commit()