diff options
author | Alexander Nestorov <alexandernst@gmail.com> | 2014-09-25 14:35:55 +0200 |
---|---|---|
committer | Alexander Nestorov <alexandernst@gmail.com> | 2014-09-25 14:35:55 +0200 |
commit | 1ada5d09e53d877c232ff260abd3a2174a34b5b1 (patch) | |
tree | 03ad3e1e46c49460154868d2b256d4dd0ad7aaa0 /GitAutoDeploy.py | |
parent | 923ff2914d8a26c348005ddbe6b4d99df16ad5df (diff) | |
download | Git-Auto-Deploy-1ada5d09e53d877c232ff260abd3a2174a34b5b1.zip Git-Auto-Deploy-1ada5d09e53d877c232ff260abd3a2174a34b5b1.tar.gz Git-Auto-Deploy-1ada5d09e53d877c232ff260abd3a2174a34b5b1.tar.bz2 |
Reset to HEAD better
Diffstat (limited to 'GitAutoDeploy.py')
-rwxr-xr-x | GitAutoDeploy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/GitAutoDeploy.py b/GitAutoDeploy.py index ce72ffb..99f93be 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 origin/master'], shell=True) + call(['cd "' + path + '" && git fetch origin && git update-index --refresh &> /dev/null && git reset --hard HEAD'], shell=True) def deploy(self, path): config = self.getConfig() |