git_deploy: use "git pull --rebase" when repo debug is enabled
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
42f61ceafa
commit
86e0ef0d5e
|
@ -468,8 +468,11 @@ class GitRepo:
|
|||
raise self.server.error(
|
||||
f"Git Repo {self.alias}: Cannot perform pull on a "
|
||||
"detached HEAD")
|
||||
cmd = "pull --progress"
|
||||
if self.cmd_helper.is_debug_enabled():
|
||||
cmd = "pull --progress --rebase"
|
||||
async with self.git_operation_lock:
|
||||
await self._run_git_cmd_async("pull --progress")
|
||||
await self._run_git_cmd_async(cmd)
|
||||
|
||||
async def list_branches(self) -> List[str]:
|
||||
self._verify_repo()
|
||||
|
|
Loading…
Reference in New Issue