diff options
Diffstat (limited to 'gitautodeploy/wrappers/git.py')
-rw-r--r-- | gitautodeploy/wrappers/git.py | 4 |
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 |