Permalink
Browse files

Fetch submodules for git sources

Closes #299
  • Loading branch information...
1 parent 3e15634 commit 4097d78cecda8e63ebb471455d7d286bebd30c16 @indirect indirect committed Apr 22, 2010
Showing with 30 additions and 0 deletions.
  1. +10 −0 CHANGELOG.md
  2. +2 −0 lib/bundler/source.rb
  3. +18 −0 spec/install/git_spec.rb
View
@@ -1,3 +1,13 @@
+## 0.9.24 (April 22, 2010)
+
+Features:
+
+ -
+
+Bugfixes:
+
+ -
+
## 0.9.23 (April 20, 2010)
Bugfixes:
@@ -395,6 +395,8 @@ def checkout
Dir.chdir(path) do
git "fetch --force --quiet"
git "reset --hard #{revision}"
+ git "submodule init"
+ git "submodule update"
end
end
@@ -307,4 +307,22 @@
should_be_installed "forced 1.0"
end
+ it "handles repos with submodules" do
+ build_git "submodule", "1.0"
+ build_git "has_submodule", "1.0" do |s|
+ s.add_dependency "submodule"
+ end
+ Dir.chdir(lib_path('has_submodule-1.0')) do
+ `git submodule add #{lib_path('submodule-1.0')}`
+ `git commit -m "submodulator"`
+ end
+
+ install_gemfile <<-G
+ git "#{lib_path('has_submodule-1.0')}"
+ gem "has_submodule"
+ G
+
+ should_be_installed "has_submodule 1.0"
+ end
+
end

0 comments on commit 4097d78

Please sign in to comment.