mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Added a hard reset command to fabric
This commit is contained in:
10
fabfile.py
vendored
10
fabfile.py
vendored
@@ -98,6 +98,16 @@ def update_repo():
|
|||||||
with cd('%(path)s/dreddit-auth/' % env):
|
with cd('%(path)s/dreddit-auth/' % env):
|
||||||
run('git pull')
|
run('git pull')
|
||||||
|
|
||||||
|
def reset_repo():
|
||||||
|
"""
|
||||||
|
Does a hard reset on the remote repo
|
||||||
|
"""
|
||||||
|
require('hosts')
|
||||||
|
require('path')
|
||||||
|
|
||||||
|
with cd('%(path)s/dreddit-auth/' % env):
|
||||||
|
run('git reset --hard')
|
||||||
|
|
||||||
|
|
||||||
def migrate():
|
def migrate():
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user