summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/wrappers/git.py
diff options
context:
space:
mode:
authorTorben <torben.letorbi@gmail.com>2016-07-08 15:52:42 +0200
committerTorben <torben.letorbi@gmail.com>2016-07-08 15:52:42 +0200
commit7720ec0cf45bb0b44e3e5b56116545237918d448 (patch)
treee94a9f2b7f0b8a0920e0192ab4e5b48ca4cbb266 /gitautodeploy/wrappers/git.py
parent2e25cb624a41143bebaea6ec59cce2a2b3b3c3a3 (diff)
downloadGit-Auto-Deploy-7720ec0cf45bb0b44e3e5b56116545237918d448.zip
Git-Auto-Deploy-7720ec0cf45bb0b44e3e5b56116545237918d448.tar.gz
Git-Auto-Deploy-7720ec0cf45bb0b44e3e5b56116545237918d448.tar.bz2
Move config checks into cli/config module
Diffstat (limited to 'gitautodeploy/wrappers/git.py')
-rw-r--r--gitautodeploy/wrappers/git.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/gitautodeploy/wrappers/git.py b/gitautodeploy/wrappers/git.py
index 19820ed..4ccd863 100644
--- a/gitautodeploy/wrappers/git.py
+++ b/gitautodeploy/wrappers/git.py
@@ -16,11 +16,6 @@ class GitWrapper():
logger = logging.getLogger()
logger.info("Updating repository %s" % repo_config['path'])
- # Only pull if there is actually a local copy of the repository
- if 'path' not in repo_config:
- logger.info('No local repository path configured, no pull will occure')
- return 0
-
commands = []
# On Windows, bash command needs to be run using bash.exe. This assumes bash.exe
@@ -59,11 +54,6 @@ class GitWrapper():
logger = logging.getLogger()
logger.info("Cloning repository %s" % repo_config['path'])
- # Only pull if there is actually a local copy of the repository
- if 'path' not in repo_config:
- logger.info('No local repository path configured, no clone will occure')
- return 0
-
commands = []
commands.append('unset GIT_DIR')
commands.append('git clone --recursive ' + repo_config['url'] + ' -b ' + repo_config['branch'] + ' ' + repo_config['path'])