summaryrefslogtreecommitdiffstats
path: root/GitAutoDeploy.py
diff options
context:
space:
mode:
authorlogsol <fartman@gmx.de>2012-06-23 16:14:24 +0200
committerlogsol <fartman@gmx.de>2012-06-23 16:14:24 +0200
commitdc5b2d33f8fe30e48ded2a7c45b17b96d4e30bcc (patch)
tree7ec81b460e21a8a1ebf05e5e7bbdc2dcbd4051b8 /GitAutoDeploy.py
parent566a1a85ce6e1587da6a89092ba36fa7083f7504 (diff)
downloadGit-Auto-Deploy-dc5b2d33f8fe30e48ded2a7c45b17b96d4e30bcc.zip
Git-Auto-Deploy-dc5b2d33f8fe30e48ded2a7c45b17b96d4e30bcc.tar.gz
Git-Auto-Deploy-dc5b2d33f8fe30e48ded2a7c45b17b96d4e30bcc.tar.bz2
using && instead of ; between directory change and subsequent command. fixes #2
Diffstat (limited to 'GitAutoDeploy.py')
-rwxr-xr-x[-rw-r--r--]GitAutoDeploy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/GitAutoDeploy.py b/GitAutoDeploy.py
index 5cc3469..ccf0232 100644..100755
--- a/GitAutoDeploy.py
+++ b/GitAutoDeploy.py
@@ -62,7 +62,7 @@ class GitAutoDeploy(BaseHTTPRequestHandler):
if(not self.quiet):
print "\nPost push request received"
print 'Updating ' + path
- call(['cd "' + path + '"; git pull'], shell=True)
+ call(['cd "' + path + '" && git pull'], shell=True)
def deploy(self, path):
config = self.getConfig()
@@ -71,7 +71,7 @@ class GitAutoDeploy(BaseHTTPRequestHandler):
if 'deploy' in repository:
if(not self.quiet):
print 'Executing deploy command'
- call(['cd "' + path + '";' + repository['deploy']], shell=True)
+ call(['cd "' + path + '" && ' + repository['deploy']], shell=True)
break
def main():