summaryrefslogtreecommitdiff
path: root/lib/bundler/source/git/git_proxy.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2024-08-07 21:14:17 +0200
committergit <[email protected]>2024-08-21 12:06:28 +0000
commit54b6025887f46b5317c6917fe8c5d630013f923a (patch)
tree81dce9f8dbbc8970791fd5ab4992270386c44d11 /lib/bundler/source/git/git_proxy.rb
parent7845ab1bc9e92fa8e5db06bea8928a4646a19976 (diff)
[rubygems/rubygems] Regeneration previous git application caches that didn't include bare repos
https://github.com/rubygems/rubygems/commit/417319ecb1
Diffstat (limited to 'lib/bundler/source/git/git_proxy.rb')
-rw-r--r--lib/bundler/source/git/git_proxy.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/source/git/git_proxy.rb b/lib/bundler/source/git/git_proxy.rb
index 2fc9c6535f..d6ff7fb488 100644
--- a/lib/bundler/source/git/git_proxy.rb
+++ b/lib/bundler/source/git/git_proxy.rb
@@ -84,6 +84,10 @@ module Bundler
end
end
+ def not_a_bare_repository?
+ git_local("rev-parse", "--is-bare-repository", dir: path).strip == "false"
+ end
+
def contains?(commit)
allowed_with_path do
result, status = git_null("branch", "--contains", commit, dir: path)