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
Copy file name to clipboardExpand all lines: src/utility/git-utils.sh
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -154,15 +154,15 @@ function latestRemoteTag() {
154
154
if(($#>2));then
155
155
logError "Maximum 2 arguments can be passed to latestRemoteTag, given \033[0;36m%s\033[0m\n""$#"
156
156
echo>&2'1: remote (optional) the name of the remote, defaults to origin'
157
-
echo>&2'2: tagFilter (optional) a regex pattern (as supported by grep -E) which allows to filter available tags before determining the latest, defaults to .* (i.e. include all)'
157
+
echo>&2'2: tagFilter (optional) a regex pattern (as supported by grep -P) which allows to filter available tags before determining the latest, defaults to .* (i.e. include all)'
158
158
printStackTrace
159
159
exit 9
160
160
fi
161
161
local -r remote=${1:-"origin"}
162
162
local -r tagFilter=${2:-".*"}
163
163
local tag
164
164
#shellcheck disable=SC2310 # we are aware of that || will disable set -e for remoteTagsSorted
165
-
tag=$(remoteTagsSorted "$remote"| grep -E"$tagFilter"| tail -n 1)|| die "could not get remote tags sorted for remote %s, see above""$remote"
165
+
tag=$(remoteTagsSorted "$remote"| grep -P"$tagFilter"| tail -n 1)|| die "could not get remote tags sorted for remote %s, see above""$remote"
166
166
if [[ -z$tag ]];then
167
167
die "looks like remote \033[0;36m%s\033[0m does not have a tag yet.""$remote"
0 commit comments