From d2a0a7ad3ec05180601a3450db5c926a25edbdc7 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Fri, 29 Oct 2010 17:26:05 +0100 Subject: [PATCH] Added a hard reset command to fabric --- fabfile.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fabfile.py b/fabfile.py index ca9fe53..f8635a6 100644 --- a/fabfile.py +++ b/fabfile.py @@ -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(): """