Skip to content

Commit

Permalink
Force fetch during deploy in case ff not possible
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Sep 16, 2023
1 parent 8982275 commit c11ef13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def update(c: Connection):
with c.cd(c.repo_path):
c.run(f"git remote set-url origin {c.deploy.repo_url}", echo=True)
c.run("git remote update", echo=True)
c.run(f"git fetch origin {c.revision}:{c.revision}", echo=True)
c.run(f"git fetch origin {c.revision}:{c.revision} --force", echo=True)
else: # clone
c.run(f"git clone --bare {c.deploy.repo_url} {c.repo_path}", echo=True)

Expand Down

0 comments on commit c11ef13

Please sign in to comment.