diff --git a/Library/Homebrew/cmd/update-reset.sh b/Library/Homebrew/cmd/update-reset.sh index 7e1d44b93d..70e2867a62 100644 --- a/Library/Homebrew/cmd/update-reset.sh +++ b/Library/Homebrew/cmd/update-reset.sh @@ -35,14 +35,7 @@ homebrew-update-reset() { [[ -d "$DIR/.git" ]] || continue cd "$DIR" || continue echo "==> Fetching $DIR..." - - if [[ "$DIR" = "$HOMEBREW_REPOSITORY" ]]; then - latest_tag="$(git ls-remote --tags --refs -q origin | tail -n1 | cut -f2)" - git fetch --force origin --shallow-since="$latest_tag" - else - git fetch --force --tags origin - fi - + git fetch --force --tags origin echo echo "==> Resetting $DIR..."