Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

don't use `submodule update --init` because it's new in git v1.6

  • Loading branch information...
commit e20787bc2e5d23d7483e32def1a1081d3d11d3a4 1 parent 0cbdf51
@mislav authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 lib/hooks/post-reset.rb
View
12 lib/hooks/post-reset.rb
@@ -55,10 +55,14 @@ def any_in_dir?(dir)
system %(rake db:migrate RAILS_ENV=#{RAILS_ENV})
end
-# sync submodule remote urls in case of changes
-system %(git submodule sync) if modified_files.include?('.gitmodules')
-# initialize new & update existing submodules
-system %(git submodule update --init)
+if modified_files.include?('.gitmodules')
+ # sync submodule remote urls in case of changes
+ system %(git submodule sync)
+ # initialize new submodules
+ system %(git submodule init)
+end
+# update existing submodules
+system %(git submodule update)
# determine if app restart is needed
if cached_assets_cleared or new_migrations or changed_files.any_in_dir?(%w(app config lib public vendor))

0 comments on commit e20787b

Please sign in to comment.
Something went wrong with that request. Please try again.