mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-13 22:32:15 +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):
|
||||
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():
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user