summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/wrappers/git.py
diff options
context:
space:
mode:
authorTorben <torben.letorbi@gmail.com>2016-05-30 12:59:05 +0200
committerTorben <torben.letorbi@gmail.com>2016-05-30 12:59:05 +0200
commitf41a44089320e01379e67315672fc6e473b2835e (patch)
tree6df2b240000417458d85a19f526c8ccb2320cd87 /gitautodeploy/wrappers/git.py
parentb41bb068ab2ccd18ca8944d6ef7113cfdc7415c5 (diff)
downloadGit-Auto-Deploy-f41a44089320e01379e67315672fc6e473b2835e.zip
Git-Auto-Deploy-f41a44089320e01379e67315672fc6e473b2835e.tar.gz
Git-Auto-Deploy-f41a44089320e01379e67315672fc6e473b2835e.tar.bz2
Simplify submodule init and update calls
Diffstat (limited to 'gitautodeploy/wrappers/git.py')
-rw-r--r--gitautodeploy/wrappers/git.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/gitautodeploy/wrappers/git.py b/gitautodeploy/wrappers/git.py
index 6ecd30c..e600d9e 100644
--- a/gitautodeploy/wrappers/git.py
+++ b/gitautodeploy/wrappers/git.py
@@ -32,9 +32,7 @@ class GitWrapper():
commands.append('git fetch ' + repo_config['remote'])
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 submodule update --init --recursive')
#commands.append('git update-index --refresh')
# All commands needs to success