Merge pull request #4575 from pi-hole/fix/tag_update

Fix updating based on tags on older git versions by doing a full fetch
This commit is contained in:
DL6ER 2022-02-01 07:44:23 +01:00 committed by GitHub
commit d956498c8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ GitCheckUpdateAvail() {
cd "${directory}" || return
# Fetch latest changes in this repo
git fetch --tags --quiet origin
git fetch --quiet origin
# Check current branch. If it is master, then check for the latest available tag instead of latest commit.
curBranch=$(git rev-parse --abbrev-ref HEAD)