summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Nestorov <alexandernst@gmail.com>2014-10-08 15:17:07 +0200
committerAlexander Nestorov <alexandernst@gmail.com>2014-10-08 15:17:07 +0200
commitfb674b80617aaab7771fb42c7595b6926c20bfb5 (patch)
tree289a2fa17b50a90711d18e28b010e87896ee11d3
parent99074c436b5d3e0d967f68a0546afc42448c1faf (diff)
downloadGit-Auto-Deploy-fb674b80617aaab7771fb42c7595b6926c20bfb5.zip
Git-Auto-Deploy-fb674b80617aaab7771fb42c7595b6926c20bfb5.tar.gz
Git-Auto-Deploy-fb674b80617aaab7771fb42c7595b6926c20bfb5.tar.bz2
Hard reset to origin, no matter what
-rwxr-xr-xGitAutoDeploy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/GitAutoDeploy.py b/GitAutoDeploy.py
index 7142cfb..4ad013d 100755
--- a/GitAutoDeploy.py
+++ b/GitAutoDeploy.py
@@ -82,7 +82,7 @@ class GitAutoDeploy(BaseHTTPRequestHandler):
if(not self.quiet):
print "\nPost push request received"
print 'Updating ' + path
- call(['cd "' + path + '" && git fetch origin && git update-index --refresh &> /dev/null && git reset --hard origin/master'], shell=True)
+ call(['cd "' + path + '" && git fetch origin ; git update-index --refresh &> /dev/null ; git reset --hard origin/master'], shell=True)
def deploy(self, path):
config = self.getConfig()