Skip to content

Commit 5e22127

Browse files
authored
post-receive: git submodule update uses "--init" option
1 parent b9b68a8 commit 5e22127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup/server/git/hooks/post-receive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ end
6161
puts "Deploying to #{GIT_WORK_TREE} as #{DEPLOY_USER}:#{DEPLOY_GROUP}..."
6262
Dir.chdir(GIT_WORK_TREE) do
6363
sudo %W{git checkout -f}
64-
sudo %W{git submodule update -i}
64+
sudo %W{git submodule update --init}
6565

6666
if File.exist? "gems.rb"
6767
sudo %W{bundle install}

0 commit comments

Comments
 (0)