summaryrefslogtreecommitdiffstats
path: root/GitAutoDeploy.py
diff options
context:
space:
mode:
authorAlexander Nestorov <alexandernst@gmail.com>2014-09-25 16:44:39 +0200
committerAlexander Nestorov <alexandernst@gmail.com>2014-09-25 16:44:39 +0200
commita221d44f326128a6420d8454fd2d2514a9964650 (patch)
tree7d3bad6efe20c5b89b4953ba6bad014beb5b2707 /GitAutoDeploy.py
parent1ada5d09e53d877c232ff260abd3a2174a34b5b1 (diff)
downloadGit-Auto-Deploy-a221d44f326128a6420d8454fd2d2514a9964650.zip
Git-Auto-Deploy-a221d44f326128a6420d8454fd2d2514a9964650.tar.gz
Git-Auto-Deploy-a221d44f326128a6420d8454fd2d2514a9964650.tar.bz2
Revert "Reset to HEAD better"
This reverts commit 1ada5d09e53d877c232ff260abd3a2174a34b5b1.
Diffstat (limited to 'GitAutoDeploy.py')
-rwxr-xr-xGitAutoDeploy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/GitAutoDeploy.py b/GitAutoDeploy.py
index 99f93be..ce72ffb 100755
--- a/GitAutoDeploy.py
+++ b/GitAutoDeploy.py
@@ -78,7 +78,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 HEAD'], 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()