Show details of any remotes on the git repositories

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
pull/3423/head
Adam Warner 4 years ago
parent 3f83c314b6
commit b2ba55c27b
No known key found for this signature in database
GPG Key ID: 872950F3ECF2B173

@ -296,7 +296,11 @@ compare_local_version_to_git_version() {
log_write "${INFO} ${pihole_component}: ${COL_YELLOW}${remote_version:-Untagged}${COL_NC} (${FAQ_UPDATE_PI_HOLE})"
fi
# If the repo is on the master branch, they are on the stable codebase
# Print the repo upstreams
remotes=$(git remote -v)
log_write "${INFO} Remotes: ${remotes//$'\n'/'\n '}"
# If the repo is on the master branchs, they are on the stable codebase
if [[ "${remote_branch}" == "master" ]]; then
# so the color of the text is green
log_write "${INFO} Branch: ${COL_GREEN}${remote_branch}${COL_NC}"

Loading…
Cancel
Save