diff options
author | Alexander Nestorov <alexandernst@gmail.com> | 2014-10-08 15:17:07 +0200 |
---|---|---|
committer | Alexander Nestorov <alexandernst@gmail.com> | 2014-10-08 15:17:07 +0200 |
commit | fb674b80617aaab7771fb42c7595b6926c20bfb5 (patch) | |
tree | 289a2fa17b50a90711d18e28b010e87896ee11d3 /GitAutoDeploy.py | |
parent | 99074c436b5d3e0d967f68a0546afc42448c1faf (diff) | |
download | Git-Auto-Deploy-fb674b80617aaab7771fb42c7595b6926c20bfb5.zip Git-Auto-Deploy-fb674b80617aaab7771fb42c7595b6926c20bfb5.tar.gz Git-Auto-Deploy-fb674b80617aaab7771fb42c7595b6926c20bfb5.tar.bz2 |
Hard reset to origin, no matter what
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 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() |