From 4101bfda8189c37cf612e1fd676b590eacf6e3c3 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 2 Feb 2019 18:34:44 +0100 Subject: [PATCH] update-reset: avoid hanging on shallow-since. For some reason this seems to hang when there's been no commits since the latest tag. Not a problem in `brew update`. --- Library/Homebrew/cmd/update-reset.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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..."