summaryrefslogtreecommitdiff
path: root/lib/bundler/source/git/git_proxy.rb
diff options
context:
space:
mode:
-rw-r--r--lib/bundler/source/git/git_proxy.rb12
1 files changed, 8 insertions, 4 deletions
@@ -118,7 +118,7 @@ module Bundler
end
end
- ref = @commit_ref || (full_sha_revision? && @revision)
git "fetch", "--force", "--quiet", *extra_fetch_args(ref), :dir => destination if ref
git "reset", "--hard", @revision, :dir => destination
@@ -236,11 +236,15 @@ module Bundler
end
def pinned_to_full_sha?
- ref =~ /\A\h{40}\z/
end
- def full_sha_revision?
- @revision.match?(/\A\h{40}\z/)
end
def git_null(*command, dir: nil)