From ce5125aaf213e79d9fbfd954b6fd3fe0b6e079a0 Mon Sep 17 00:00:00 2001 From: Robert Stoll Date: Sun, 28 Aug 2022 22:14:18 +0200 Subject: [PATCH] remote was only considered if there was more than 1 argument --- src/utility/git-utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/git-utils.sh b/src/utility/git-utils.sh index 017f6b8c..2470e52e 100644 --- a/src/utility/git-utils.sh +++ b/src/utility/git-utils.sh @@ -141,7 +141,7 @@ function hasRemoteTag() { function remoteTagsSorted() { local remote="origin" - if (($# > 1)); then + if (($# > 0)); then remote=$1 shift || die "could not shift by 1" fi