You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
die "Package '$id' is not a Git repository. Unlink or otherwise remove it at '$pkg_path'"
68
-
fi
66
+
if [ "$has_invalid_packages"='yes' ];then
67
+
log.error "Some packages are installed in an outdated format. To fix this optimally, remove the '${BPM_PACKAGES_PATH%/*}' directory and reinstall all the packages that were deleted in the process. This procedure is required in response to a one-time breaking change in how packages are stored"
68
+
fi
69
+
}
70
+
71
+
echo_package_info() {
72
+
local pkg_path="$1"
73
+
local site="$2"
74
+
local user="$3"
75
+
local repository="$4"
76
+
77
+
# Users that have installed packages before the switch to namespacing by
78
+
# site domain name will print incorrectly. So, we check to make sure the site
79
+
# url is actually is a domain name and not, for example, a GitHub username
80
+
if [[ "$site"!=*.* ]] && [ "$site"!='local' ];then
81
+
has_invalid_packages='yes'
82
+
return
83
+
fi
84
+
85
+
# Relative path location of the current package
86
+
local id=
87
+
if [ "$site"='local' ];then
88
+
id="$site/$repository"
89
+
else
90
+
id="$site/$user/$repository"
91
+
fi
92
+
93
+
# The information being outputed for a particular package
94
+
# Ex.
95
+
# github.com/tj/git-extras
96
+
# Status: Up to Date
97
+
# Branch: main\n
98
+
local pkg_output=
99
+
100
+
printf -v pkg_output "%s\n""$id"
101
+
102
+
if [ "$flag_simple"='no' ];then
103
+
if [ !-d"$pkg_path/.git" ];then
104
+
die "Package '$id' is not a Git repository. Unlink or otherwise remove it at '$pkg_path'"
105
+
fi
69
106
70
-
local repo_branch_str= repo_revision_str= repo_outdated_str=
log.error "Some packages are installed in an outdated format. To fix this optimally, remove the '${BPM_PACKAGES_PATH%/*}' directory and reinstall all the packages that were deleted in the process. This procedure is required in response to a one-time breaking change in how packages are stored"
129
+
# shellcheck disable=SC1083
130
+
if [ "$(git -C "$pkg_path" rev-list --count HEAD...HEAD@{upstream})"-gt 0 ];then
0 commit comments