Skip to content

Commit

Permalink
cmd/update-reset: remove .git/describe-cache.
Browse files Browse the repository at this point in the history
As this is a cache and can potentially be incorrect, let's allow this
way of cleaning it up.
  • Loading branch information
MikeMcQuaid committed Dec 3, 2024
1 parent d4c8ce0 commit fc40424
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/cmd/update-reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit fc40424

Please sign in to comment.