mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 14:27:27 -08:00
Fix default branch detection
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
df80dc4d39
commit
f9e2748f6f
|
@ -71,7 +71,7 @@ process_repo() {
|
||||||
echo -e "\e[32mAnalyzing '${org_repo}'\e[0m"
|
echo -e "\e[32mAnalyzing '${org_repo}'\e[0m"
|
||||||
|
|
||||||
default_branch="$(get_default_branch ${1})"
|
default_branch="$(get_default_branch ${1})"
|
||||||
if [[ -z "${target_file}" ]]; then
|
if [[ -z "${default_branch}" ]]; then
|
||||||
echo "Can't get the default branch."
|
echo "Can't get the default branch."
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue