diff --git a/hex/helpers/lib/parse_deps.exs b/hex/helpers/lib/parse_deps.exs index f4b2240dd53..89d8f8c4d62 100644 --- a/hex/helpers/lib/parse_deps.exs +++ b/hex/helpers/lib/parse_deps.exs @@ -109,7 +109,7 @@ defmodule Parser do %{ type: "git", url: repo_url, - branch: opts[:branch] || "master", + branch: opts[:branch], ref: ref } end diff --git a/npm_and_yarn/lib/dependabot/npm_and_yarn/file_parser.rb b/npm_and_yarn/lib/dependabot/npm_and_yarn/file_parser.rb index b4c251047b8..62a4afed944 100644 --- a/npm_and_yarn/lib/dependabot/npm_and_yarn/file_parser.rb +++ b/npm_and_yarn/lib/dependabot/npm_and_yarn/file_parser.rb @@ -508,7 +508,7 @@ def git_source_for(requirement) type: "git", url: "https://#{host}/#{details['username']}/#{details['repo']}", branch: nil, - ref: details["ref"] || "master" + ref: details["ref"] } end