summaryrefslogtreecommitdiff
path: root/lib/bundler/source/git
diff options
context:
space:
mode:
-rw-r--r--lib/bundler/source/git/git_proxy.rb11
1 files changed, 8 insertions, 3 deletions
@@ -185,7 +185,8 @@ module Bundler
_, err, status = capture(command, nil)
return extra_ref if status.success?
- if err.include?("Could not find remote branch")
raise MissingGitRevisionError.new(command_with_no_credentials, nil, explicit_ref, credential_filtered_uri)
else
idx = command.index("--depth")
@@ -262,7 +263,7 @@ module Bundler
end
def not_pinned?
- branch || tag || ref.nil?
end
def pinned_to_full_sha?
@@ -426,7 +427,7 @@ module Bundler
# anyways.
return args if @revision
- args += ["--branch", branch || tag] if branch || tag
args
end
@@ -442,6 +443,10 @@ module Bundler
extra_args
end
def full_clone?
depth.nil?
end