We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e2f84 commit 53d7354Copy full SHA for 53d7354
fabfile.py
@@ -21,7 +21,7 @@ def stage_master():
21
local("git push -f origin")
22
local("git push -f ukhas")
23
24
-def deploy():
+def deploy(reset=False, head='HEAD^'):
25
wd = "/var/www/habitat/mobile-tracker/"
26
27
with settings(warn_only=True):
@@ -30,7 +30,9 @@ def deploy():
30
return
31
32
with cd(wd):
33
- run("git reset --hard")
+ if reset == 'reset':
34
+ run("git reset --hard " + head)
35
+
36
run("git pull")
37
run("./build.sh")
38
0 commit comments