summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/wrappers/git.py
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2016-05-05 21:22:03 +0200
committerOliver Poignant <oliver@poignant.se>2016-05-05 21:22:03 +0200
commite614d788fa92718a704efc64bea104aa0be8927a (patch)
tree90abbde99293d271723c95b50408ec9359a6b064 /gitautodeploy/wrappers/git.py
parent70f8d7d01873e8d66b9a3ce7497f2f857e573984 (diff)
downloadGit-Auto-Deploy-e614d788fa92718a704efc64bea104aa0be8927a.zip
Git-Auto-Deploy-e614d788fa92718a704efc64bea104aa0be8927a.tar.gz
Git-Auto-Deploy-e614d788fa92718a704efc64bea104aa0be8927a.tar.bz2
Ability to start GAD in a mode where it serves only one incoming request and then quits
Diffstat (limited to 'gitautodeploy/wrappers/git.py')
-rw-r--r--gitautodeploy/wrappers/git.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitautodeploy/wrappers/git.py b/gitautodeploy/wrappers/git.py
index 98a7361..ec4246e 100644
--- a/gitautodeploy/wrappers/git.py
+++ b/gitautodeploy/wrappers/git.py
@@ -36,7 +36,8 @@ class GitWrapper():
@staticmethod
def clone(url, branch, path):
from process import ProcessWrapper
- ProcessWrapper().call(['git clone --recursive ' + url + ' -b ' + branch + ' ' + path], shell=True)
+ res = ProcessWrapper().call(['git clone --recursive ' + url + ' -b ' + branch + ' ' + path], shell=True)
+ return int(res)
@staticmethod
def deploy(repo_config):