summaryrefslogtreecommitdiff
path: root/lib/bundler/source/git/git_proxy.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2024-11-22 11:14:08 +0100
committergit <[email protected]>2024-11-29 15:27:39 +0000
commit9a4d91fa9507d981a02595d1760628f74396feec (patch)
tree6b181f43f42816b719d8f03b0fc1ed949f8df9d2 /lib/bundler/source/git/git_proxy.rb
parent2a8437a1eb54f8beedb9c1f2e2dd5001d04ca13b (diff)
[rubygems/rubygems] Restore previous application cache format for git sources
And make sure `bundle install --local` can install from it without git. https://github.com/rubygems/rubygems/commit/7d6b631620
Diffstat (limited to 'lib/bundler/source/git/git_proxy.rb')
-rw-r--r--lib/bundler/source/git/git_proxy.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/bundler/source/git/git_proxy.rb b/lib/bundler/source/git/git_proxy.rb
index 744235bc04..a73e893829 100644
--- a/lib/bundler/source/git/git_proxy.rb
+++ b/lib/bundler/source/git/git_proxy.rb
@@ -84,12 +84,6 @@ module Bundler
end
end
- def not_a_repository?
- _, status = git_null("rev-parse", "--resolve-git-dir", path.to_s, dir: path)
-
- !status.success?
- end
-
def contains?(commit)
allowed_with_path do
result, status = git_null("branch", "--contains", commit, dir: path)