Apply suggestions from code review

Co-authored-by: DL6ER <DL6ER@users.noreply.github.com>
Signed-off-by: yubiuser <ckoenig@posteo.de>
This commit is contained in:
yubiuser 2023-05-10 13:50:06 +02:00 committed by GitHub
parent a023195c4d
commit ff91db7b9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ GitCheckUpdateAvail() {
# need @{0}
LOCAL="$(git rev-parse "@{0}")"
# check if the local branch ef is a branch or a tag on remote repo
# check if the local branch ref is a branch or a tag on remote repo
if git show-ref -q --verify "refs/remotes/origin/$curBranch" 2>/dev/null; then
ref_is_tag=false
elif git show-ref -q --verify "refs/tags/$curBranch" 2>/dev/null; then

View file

@ -478,7 +478,7 @@ update_repo() {
# Remove any leading "heads/" as $curBranch is later used to check if local branch is remote branch or tag
curBranch=$(git rev-parse --abbrev-ref HEAD| sed "s/^heads\///g")
# check if the local branch ef is a branch or a tag on remote repo
# check if the local branch ref is a branch or a tag on remote repo
if git show-ref -q --verify "refs/remotes/origin/$curBranch" 2>/dev/null; then
ref_is_branch=true
elif git show-ref -q --verify "refs/tags/$curBranch" 2>/dev/null; then