mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
Merge pull request #8539 from roidelapluie/rename-to-main-df-branch
Fix default branch detection
This commit is contained in:
commit
7bf76af6df
|
@ -71,7 +71,7 @@ process_repo() {
|
|||
echo -e "\e[32mAnalyzing '${org_repo}'\e[0m"
|
||||
|
||||
default_branch="$(get_default_branch ${1})"
|
||||
if [[ -z "${target_file}" ]]; then
|
||||
if [[ -z "${default_branch}" ]]; then
|
||||
echo "Can't get the default branch."
|
||||
return
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue