Skip to content

Commit

Permalink
Clean remote before pulling git changes
Browse files Browse the repository at this point in the history
  • Loading branch information
strycore committed Feb 20, 2019
1 parent 3a10770 commit d378381
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def pull(c):
config = get_config(c)
with c.cd(config['code_root']):
c.run("git checkout %s" % config['git_branch'])
c.run("git reset --hard")
c.run("git clean -df")
c.run("git pull")


Expand Down

0 comments on commit d378381

Please sign in to comment.