cmd/update-reset: remove .git/describe-cache.

As this is a cache and can potentially be incorrect, let's allow this
way of cleaning it up.
This commit is contained in:
Mike McQuaid 2024-12-03 14:30:14 +00:00
parent d4c8ce0bba
commit fc40424f0e
No known key found for this signature in database

View File

@ -86,6 +86,7 @@ homebrew-update-reset() {
head="${head#refs/remotes/origin/}"
git -C "${DIR}" checkout --force -B "${head}" origin/HEAD
fi
rm -rf "${DIR}/.git/describe-cache"
echo
done
}