Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tap: fix repair not working in some cases #16180

Merged
merged 1 commit into from Nov 5, 2023
Merged

Conversation

Bo98
Copy link
Member

@Bo98 Bo98 commented Nov 5, 2023

I recently got:

Error: Some taps failed to update!
The following taps can not read their remote branches:
  heroku/brew
This is happening because the remote branch was renamed or deleted.
Reset taps to point to the correct remote branches by running `brew tap --repair`

but the instructed brew tap --repair didn't work:

$ brew tap --repair
fatal: couldn't find remote ref refs/heads/master
Error: Failure while executing; `git -C /usr/local/Homebrew/Library/Taps/heroku/homebrew-brew fetch origin` exited with 128.

That was because of some previous default:

$ git -C /usr/local/Homebrew/Library/Taps/heroku/homebrew-brew config remote.origin.fetch
+refs/heads/master:refs/remotes/origin/master

@Bo98 Bo98 merged commit 2fd99da into Homebrew:master Nov 5, 2023
27 checks passed
@Bo98 Bo98 deleted the tap-repair-fix branch November 5, 2023 20:05
@github-actions github-actions bot added the outdated PR was locked due to age label Dec 6, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants