Skip to content

Commit

Permalink
added depth 1 to git commands
Browse files Browse the repository at this point in the history
  • Loading branch information
collin committed Jul 15, 2010
1 parent 9f8db4e commit c736f97
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/bundler/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -599,22 +599,22 @@ def cache
else
Bundler.ui.info "Fetching #{uri}"
FileUtils.mkdir_p(cache_path.dirname)
git %|clone "#{uri}" "#{cache_path}" --bare --no-hardlinks|
git %|clone "#{uri}" "#{cache_path}" --bare --depth 1 --no-hardlinks |
end
end

def checkout
unless File.exist?(path.join(".git"))
FileUtils.mkdir_p(path.dirname)
git %|clone --no-checkout "#{cache_path}" "#{path}"|
git %|clone --depth 1 --no-checkout "#{cache_path}" "#{path}"|
end
Dir.chdir(path) do
git "fetch --force --quiet"
git "reset --hard #{revision}"
git %|fetch --force --quiet --depth 1|
git %|reset --hard #{revision}|

if @submodules
git "submodule init"
git "submodule update"
git %|submodule init|
git %|submodule update|
end
end
end
Expand Down

0 comments on commit c736f97

Please sign in to comment.