Merge pull request #18857 from Homebrew/update_reset_describe_cache

cmd/update-reset: remove .git/describe-cache.
This commit is contained in:
Mike McQuaid 2024-12-03 15:26:11 +00:00 committed by GitHub
commit aab506d57b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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