summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/wrappers/git.py
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2016-05-07 19:36:37 +0200
committerOliver Poignant <oliver@poignant.se>2016-05-07 19:36:37 +0200
commit703ff62ad8e386e7d9c0e545f60e46fff93ea8e5 (patch)
treecd5865d5cf6305f75f15a5187e267ca74abbc48f /gitautodeploy/wrappers/git.py
parente5caf489f037c21e2bc43fd7cdad020942e86589 (diff)
downloadGit-Auto-Deploy-703ff62ad8e386e7d9c0e545f60e46fff93ea8e5.zip
Git-Auto-Deploy-703ff62ad8e386e7d9c0e545f60e46fff93ea8e5.tar.gz
Git-Auto-Deploy-703ff62ad8e386e7d9c0e545f60e46fff93ea8e5.tar.bz2
Support for detailed HTTP responses. Improved error handling.
Diffstat (limited to 'gitautodeploy/wrappers/git.py')
-rw-r--r--gitautodeploy/wrappers/git.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gitautodeploy/wrappers/git.py b/gitautodeploy/wrappers/git.py
index ec4246e..63a94fc 100644
--- a/gitautodeploy/wrappers/git.py
+++ b/gitautodeploy/wrappers/git.py
@@ -54,5 +54,8 @@ class GitWrapper():
# Use repository path as default cwd when executing deploy commands
cwd = (repo_config['path'] if 'path' in repo_config else None)
+ res = []
for cmd in repo_config['deploy_commands']:
- ProcessWrapper().call([cmd], cwd=cwd, shell=True) \ No newline at end of file
+ res.append(ProcessWrapper().call([cmd], cwd=cwd, shell=True))
+
+ return res \ No newline at end of file