summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/wrappers/git.py
diff options
context:
space:
mode:
authorTorben <torben.letorbi@gmail.com>2016-05-30 12:53:14 +0200
committerTorben <torben.letorbi@gmail.com>2016-05-30 12:53:14 +0200
commitb41bb068ab2ccd18ca8944d6ef7113cfdc7415c5 (patch)
tree1ecae267c42c2fc407ac3a4f4e94ce16385b7b1f /gitautodeploy/wrappers/git.py
parent9538eeae249c694feb3a2494804f36857e95c4af (diff)
downloadGit-Auto-Deploy-b41bb068ab2ccd18ca8944d6ef7113cfdc7415c5.zip
Git-Auto-Deploy-b41bb068ab2ccd18ca8944d6ef7113cfdc7415c5.tar.gz
Git-Auto-Deploy-b41bb068ab2ccd18ca8944d6ef7113cfdc7415c5.tar.bz2
Add recursive update call for submodules to git pull wrapper
Diffstat (limited to 'gitautodeploy/wrappers/git.py')
-rw-r--r--gitautodeploy/wrappers/git.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitautodeploy/wrappers/git.py b/gitautodeploy/wrappers/git.py
index 5f97171..6ecd30c 100644
--- a/gitautodeploy/wrappers/git.py
+++ b/gitautodeploy/wrappers/git.py
@@ -34,6 +34,7 @@ class GitWrapper():
commands.append('git reset --hard ' + repo_config['remote'] + '/' + repo_config['branch'])
commands.append('git submodule init')
commands.append('git submodule update')
+ commands.append('git submodule foreach --recursive "git submodule init && git submodule update')
#commands.append('git update-index --refresh')
# All commands needs to success